Skip to content

Commit 2a3778c

Browse files
Sleuth56davidflypei
authored andcommitted
feat: enable state key on generic oauth2 (requarks#6104)
1 parent 9a44406 commit 2a3778c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/modules/authentication/oauth2/authentication.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = {
1818
userInfoURL: conf.userInfoURL,
1919
callbackURL: conf.callbackURL,
2020
passReqToCallback: true,
21-
scope: conf.scope
21+
scope: conf.scope,
22+
state: true
2223
}, async (req, accessToken, refreshToken, profile, cb) => {
2324
try {
2425
const user = await WIKI.models.users.processProfile({

0 commit comments

Comments
 (0)