mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 14:55:27 -04:00
Merge pull request #278 from elespike/master
Add OIDC scopes for email & profile retrieval
This commit is contained in:
commit
4104f9835d
6 changed files with 10 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue