Skip to content

Commit

Permalink
feat: enable state key on generic oauth2 (requarks#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleuth56 authored Jan 29, 2023
1 parent 06e2e5d commit eb52abe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/modules/authentication/oauth2/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit eb52abe

Please sign in to comment.