Bläddra i källkod

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

Sleuth56 2 år sedan
förälder
incheckning
12233c476d
1 ändrade filer med 2 tillägg och 1 borttagningar
  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,
       userInfoURL: conf.userInfoURL,
       callbackURL: conf.callbackURL,
       callbackURL: conf.callbackURL,
       passReqToCallback: true,
       passReqToCallback: true,
-      scope: conf.scope
+      scope: conf.scope,
+      state: true
     }, async (req, accessToken, refreshToken, profile, cb) => {
     }, async (req, accessToken, refreshToken, profile, cb) => {
       try {
       try {
         const user = await WIKI.models.users.processProfile({
         const user = await WIKI.models.users.processProfile({