summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorDavid Mehren2020-10-24 11:54:08 +0200
committerGitHub2020-10-24 11:54:08 +0200
commit623e77082f59569f98f691be186597894a7c0ea2 (patch)
tree79a0f424d59f9f4982b662f005b6596743bb5e66 /lib/web
parenta160d81fe33044ca8fbb71addd77c40d55b37251 (diff)
parenta88b4aff2a904cd2351002784817d54120766ad8 (diff)
Merge pull request #541 from haslersn/oauth2/set-state
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 1865ad54..6e3e8373 100644
--- a/lib/web/auth/oauth2/index.js
+++ b/lib/web/auth/oauth2/index.js
@@ -90,7 +90,8 @@ passport.use(new OAuth2CustomStrategy({
clientSecret: config.oauth2.clientSecret,
callbackURL: config.serverURL + '/auth/oauth2/callback',
userProfileURL: config.oauth2.userProfileURL,
- scope: config.oauth2.scope
+ scope: config.oauth2.scope,
+ state: true
}, passportGeneralCallback))
oauth2Auth.get('/auth/oauth2', function (req, res, next) {