diff options
author | Christoph (Sheogorath) Kern | 2018-04-28 01:13:39 +0200 |
---|---|---|
committer | GitHub | 2018-04-28 01:13:39 +0200 |
commit | 2232905c4a1b99b9316b9953c91f5265358ba00e (patch) | |
tree | 70ed638644cc5002d97db46ba9d9254a3658e765 /lib | |
parent | 763479bea8603b9bd18133b0534314edebc50777 (diff) | |
parent | e0629c7d271b912e3973096469cf485a885cec47 (diff) |
Merge pull request #811 from hackmdio/fix-saml-typo
Fix typo of "grouptAttribute" in saml auth module
Diffstat (limited to 'lib')
-rw-r--r-- | lib/web/auth/saml/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index 3ecbc6f3..b8d98340 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -20,14 +20,14 @@ passport.use(new SamlStrategy({ identifierFormat: config.saml.identifierFormat }, function (user, done) { // check authorization if needed - if (config.saml.externalGroups && config.saml.grouptAttribute) { + if (config.saml.externalGroups && config.saml.groupAttribute) { var externalGroups = intersection(config.saml.externalGroups, user[config.saml.groupAttribute]) if (externalGroups.length > 0) { logger.error('saml permission denied: ' + externalGroups.join(', ')) return done('Permission denied', null) } } - if (config.saml.requiredGroups && config.saml.grouptAttribute) { + if (config.saml.requiredGroups && config.saml.groupAttribute) { if (intersection(config.saml.requiredGroups, user[config.saml.groupAttribute]).length === 0) { logger.error('saml permission denied') return done('Permission denied', null) |