File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments