summaryrefslogtreecommitdiff
path: root/lib/web/auth/oauth2
diff options
context:
space:
mode:
authorSheogorath2020-06-23 16:49:38 +0200
committerGitHub2020-06-23 16:49:38 +0200
commit5c45b35a82061a02189801d23e36185088cd1fba (patch)
tree219736698616291aa39dfac3fbb575976b62eeae /lib/web/auth/oauth2
parent0ef5261e61e4f6306875599e7ad99468cd54399a (diff)
parent5f3a1b626653d9b6331bfcb673d64324b29e2927 (diff)
Merge pull request #419 from vberger/master
Backport of #278 for 1.6.1
Diffstat (limited to '')
-rw-r--r--lib/web/auth/oauth2/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web/auth/oauth2/index.js b/lib/web/auth/oauth2/index.js
index 2bd73196..1865ad54 100644
--- a/lib/web/auth/oauth2/index.js
+++ b/lib/web/auth/oauth2/index.js
@@ -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) {