diff --git a/server/modules/authentication/oidc/authentication.js b/server/modules/authentication/oidc/authentication.js index bea659f2..de76da41 100644 --- a/server/modules/authentication/oidc/authentication.js +++ b/server/modules/authentication/oidc/authentication.js @@ -20,7 +20,9 @@ module.exports = { userInfoURL: conf.userInfoURL, callbackURL: conf.callbackURL, passReqToCallback: true - }, async (req, iss, sub, profile, cb) => { + }, async (req, iss, uiProfile, idProfile, context, idToken, accessToken, refreshToken, params, cb) => { + const profile = Object.assign({}, idProfile, uiProfile) + try { const user = await WIKI.models.users.processProfile({ providerKey: req.params.strategy,