diff options
author | David Mehren | 2020-10-24 11:54:08 +0200 |
---|---|---|
committer | GitHub | 2020-10-24 11:54:08 +0200 |
commit | 623e77082f59569f98f691be186597894a7c0ea2 (patch) | |
tree | 79a0f424d59f9f4982b662f005b6596743bb5e66 /lib/web/auth/oauth2 | |
parent | a160d81fe33044ca8fbb71addd77c40d55b37251 (diff) | |
parent | a88b4aff2a904cd2351002784817d54120766ad8 (diff) |
Merge pull request #541 from haslersn/oauth2/set-state
Diffstat (limited to 'lib/web/auth/oauth2')
-rw-r--r-- | lib/web/auth/oauth2/index.js | 3 |
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) { |