Merge pull request #407 from dalcde/oauth2

Generic OAuth2: Set state: true
This commit is contained in:
Sheogorath 2020-06-26 12:06:03 +02:00 committed by GitHub
commit a96e9fd8be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,8 @@ export const OAuth2Middleware: AuthMiddleware = {
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', passport.authenticate('oauth2'))