mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
Add OIDC scopes for email & profile retrieval
Signed-off-by: Marius <elespike@lab26.net>
This commit is contained in:
parent
8ce7b28563
commit
6332fce5d8
2 changed files with 4 additions and 2 deletions
|
@ -91,7 +91,8 @@ module.exports = {
|
|||
authorizationURL: undefined,
|
||||
tokenURL: undefined,
|
||||
clientID: undefined,
|
||||
clientSecret: undefined
|
||||
clientSecret: undefined,
|
||||
scope: 'openid email profile'
|
||||
},
|
||||
facebook: {
|
||||
clientID: undefined,
|
||||
|
|
|
@ -89,7 +89,8 @@ passport.use(new OAuth2CustomStrategy({
|
|||
clientID: config.oauth2.clientID,
|
||||
clientSecret: config.oauth2.clientSecret,
|
||||
callbackURL: config.serverURL + '/auth/oauth2/callback',
|
||||
userProfileURL: config.oauth2.userProfileURL
|
||||
userProfileURL: config.oauth2.userProfileURL,
|
||||
scope: config.oauth2.scope
|
||||
}, passportGeneralCallback))
|
||||
|
||||
oauth2Auth.get('/auth/oauth2', function (req, res, next) {
|
||||
|
|
Loading…
Reference in a new issue