Skip to content

Commit 2232905

Browse files
authored
Merge pull request #811 from hackmdio/fix-saml-typo
Fix typo of "grouptAttribute" in saml auth module
2 parents 763479b + e0629c7 commit 2232905

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/web/auth/saml/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ passport.use(new SamlStrategy({
2020
identifierFormat: config.saml.identifierFormat
2121
}, function (user, done) {
2222
// check authorization if needed
23-
if (config.saml.externalGroups && config.saml.grouptAttribute) {
23+
if (config.saml.externalGroups && config.saml.groupAttribute) {
2424
var externalGroups = intersection(config.saml.externalGroups, user[config.saml.groupAttribute])
2525
if (externalGroups.length > 0) {
2626
logger.error('saml permission denied: ' + externalGroups.join(', '))
2727
return done('Permission denied', null)
2828
}
2929
}
30-
if (config.saml.requiredGroups && config.saml.grouptAttribute) {
30+
if (config.saml.requiredGroups && config.saml.groupAttribute) {
3131
if (intersection(config.saml.requiredGroups, user[config.saml.groupAttribute]).length === 0) {
3232
logger.error('saml permission denied')
3333
return done('Permission denied', null)

0 commit comments

Comments
 (0)