/jhuda-user-service

Primary LanguageGoApache License 2.0Apache-2.0

JHUDA user service

Build Status

Contains the JHUDA user service, which provides an HTTP API for finding information about the current shibboleth logged-in user. Presumes the incoming requests are protected by shibboleth, and shibboleth releases attributes about the current user.

Usage

jhuda-user-service serve

Configuration

For cli flags, see jhuda-user-service help

Environment variables are as follows:

  • USER_SERVICE_PORT - Port to serve the user service on (default 8091)
  • USER_SERVICE_JSONLD_CONTEXT - JSONLD-context for User JSON responses (optional)
  • USER_SERVICE_USER_BASEURL - BaseURL for user IDs (optional, e.g. http://archive.local/fcrepo/rest/users)

Shibboleth headers can be controlled by headers as well, if the defaults don't work out

  • SHIB_HEADER_EPPN Name of the Eppn header (Default Eppn)
  • SHIB_HEADER_DISPLAYNAME: Name of the Displayname header (Default Displayname)
  • SHIB_HEADER_EMAIL: Name of the e-mail header (default Mail)
  • SHIB_HEADER_GIVEN_NAME: Name of the "given name" header (default Givenname)
  • SHIB_HEADER_LAST_NAME: Name of the "last name" header (default: Sn)
  • SHIB_HEADERS_LOCATOR: Comma-separated list of all headers to use as locators (default Employeenumber,unique-id,Eppn)