From 12233c476d6b8addd17b1ea3d1428c1605d18458 Mon Sep 17 00:00:00 2001 From: Sleuth56 <34520077+Sleuth56@users.noreply.github.com> Date: Sun, 29 Jan 2023 16:51:40 -0500 Subject: [PATCH] feat: enable state key on generic oauth2 (#6104) --- 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({