Merge pull request #4494 from mstrhakr/master

Updated OIDC Scope
This commit is contained in:
Ylian Saint-Hilaire 2022-09-03 16:00:47 -07:00 committed by GitHub
commit 6393f5b029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6902,7 +6902,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
userInfoURL: domain.authstrategies.oidc.userinfourl, userInfoURL: domain.authstrategies.oidc.userinfourl,
clientID: domain.authstrategies.oidc.clientid, clientID: domain.authstrategies.oidc.clientid,
clientSecret: domain.authstrategies.oidc.clientsecret, clientSecret: domain.authstrategies.oidc.clientsecret,
scope: ['openid profile email groups'], scope: ['profile email'],
}; };
var OIDCStrategy = require('passport-openidconnect'); var OIDCStrategy = require('passport-openidconnect');
if (typeof domain.authstrategies.oidc.callbackurl == 'string') { options.callbackURL = domain.authstrategies.oidc.callbackurl; } else { options.callbackURL = url + 'oidc-callback'; } if (typeof domain.authstrategies.oidc.callbackurl == 'string') { options.callbackURL = domain.authstrategies.oidc.callbackurl; } else { options.callbackURL = url + 'oidc-callback'; }