浏览代码

feat: enable state key on generic oauth2 (#6104)

Sleuth56 2 年之前
父节点
当前提交
12233c476d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server/modules/authentication/oauth2/authentication.js

+ 2 - 1
server/modules/authentication/oauth2/authentication.js

@@ -18,7 +18,8 @@ module.exports = {
       userInfoURL: conf.userInfoURL,
       callbackURL: conf.callbackURL,
       passReqToCallback: true,
-      scope: conf.scope
+      scope: conf.scope,
+      state: true
     }, async (req, accessToken, refreshToken, profile, cb) => {
       try {
         const user = await WIKI.models.users.processProfile({