Merge pull request #541 from haslersn/oauth2/set-state
This commit is contained in:
commit
623e77082f
@ -90,7 +90,8 @@ passport.use(new OAuth2CustomStrategy({
|
|||||||
clientSecret: config.oauth2.clientSecret,
|
clientSecret: config.oauth2.clientSecret,
|
||||||
callbackURL: config.serverURL + '/auth/oauth2/callback',
|
callbackURL: config.serverURL + '/auth/oauth2/callback',
|
||||||
userProfileURL: config.oauth2.userProfileURL,
|
userProfileURL: config.oauth2.userProfileURL,
|
||||||
scope: config.oauth2.scope
|
scope: config.oauth2.scope,
|
||||||
|
state: true
|
||||||
}, passportGeneralCallback))
|
}, passportGeneralCallback))
|
||||||
|
|
||||||
oauth2Auth.get('/auth/oauth2', function (req, res, next) {
|
oauth2Auth.get('/auth/oauth2', function (req, res, next) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user