JavaScript package for accessing authentication items from Shibboleth in Express and Restify web applications.
npm install shibbolethhttp_shibsessionid header or the x-iisnode-http_shibsessionid header is present. If so, the middleware passes, and moves to the next middleware. If not, the middleware will look for an environment variable called SHIBBOLETHURL. This URL should be the login/authentication URL without the query string. It will append ?target= to the end of it, and then redirect the user to the Shibboleth authentication URL with the target set to the currently requested page.
http_uid or logon_user. This will depend on your setup.
http_uid
http_pubcookie_user
logon_user
x-iisnode-http_uid
x-iisnode-http_pubcookie_user
x-iisnode-login_user
Shibboleth class:
shib.hasShibSessionInfo(req, headers)
headers is optional, and is a string array of Shibboleth session headers to look for in order to verify that the request has a Shibboleth session.
shib.shouldRedirect(req)
shib.redirect(req, next)
next is for Restify only, and is what is passed through via the shibboleth() middleware.