Skip to content

Commit

Permalink
update oidc scope
Browse files Browse the repository at this point in the history
passport-openidconnect adds the 'openid' scope to the request, regardless of if its already there.
removed 'openid' scope
removed unused 'groups' scope
  • Loading branch information
mstrhakr committed Sep 3, 2022
1 parent cae47b8 commit c8774e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver.js
Expand Up @@ -6902,7 +6902,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
userInfoURL: domain.authstrategies.oidc.userinfourl,
clientID: domain.authstrategies.oidc.clientid,
clientSecret: domain.authstrategies.oidc.clientsecret,
scope: ['openid profile email groups'],
scope: ['profile email'],
};
var OIDCStrategy = require('passport-openidconnect');
if (typeof domain.authstrategies.oidc.callbackurl == 'string') { options.callbackURL = domain.authstrategies.oidc.callbackurl; } else { options.callbackURL = url + 'oidc-callback'; }
Expand Down

0 comments on commit c8774e7

Please sign in to comment.