From 2fd7d3b73cf32d204b1372d7be8ba636e737a6bc Mon Sep 17 00:00:00 2001 From: Sleuth Date: Sun, 29 Jan 2023 15:36:21 -0500 Subject: [PATCH] Enable state key on generic oauth2 --- server/modules/authentication/oauth2/authentication.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/authentication/oauth2/authentication.js b/server/modules/authentication/oauth2/authentication.js index a2285cfff8..f40fb395e5 100644 --- a/server/modules/authentication/oauth2/authentication.js +++ b/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({