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.
jhuda-user-service serve
For cli flags, see jhuda-user-service help
Environment variables are as follows:
USER_SERVICE_PORT
- Port to serve the user service on (default8091
)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 (DefaultEppn
)SHIB_HEADER_DISPLAYNAME
: Name of the Displayname header (DefaultDisplayname
)SHIB_HEADER_EMAIL
: Name of the e-mail header (defaultMail
)SHIB_HEADER_GIVEN_NAME
: Name of the "given name" header (defaultGivenname
)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 (defaultEmployeenumber,unique-id,Eppn
)