diff options
author | Christoph (Sheogorath) Kern | 2019-04-06 21:35:39 +0200 |
---|---|---|
committer | GitHub | 2019-04-06 21:35:39 +0200 |
commit | 36c083277e6c74bb6eac495971522e6932cfc207 (patch) | |
tree | bd7ed2541fd1f233ac74b4dbd7953e1bb975c73e /lib/web/auth | |
parent | 5379d65edc8edfb6135f43e4e021ee2d7907d957 (diff) | |
parent | df53f465c0238e9a6a306df21cd7e04731056dd6 (diff) |
Merge pull request #30 from codimd/samlConfig
Added a configuration option for passport-saml:
Diffstat (limited to 'lib/web/auth')
-rw-r--r-- | lib/web/auth/saml/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index b8d98340..3cdb7fe2 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -17,7 +17,8 @@ passport.use(new SamlStrategy({ entryPoint: config.saml.idpSsoUrl, issuer: config.saml.issuer || config.serverURL, cert: fs.readFileSync(config.saml.idpCert, 'utf-8'), - identifierFormat: config.saml.identifierFormat + identifierFormat: config.saml.identifierFormat, + disableRequestedAuthnContext: config.saml.disableRequestedAuthnContext }, function (user, done) { // check authorization if needed if (config.saml.externalGroups && config.saml.groupAttribute) { |