mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
Merge pull request #407 from dalcde/oauth2
Generic OAuth2: Set state: true
This commit is contained in:
commit
a96e9fd8be
1 changed files with 2 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue