From bba1d1b57418ce5c528d3985f0f4c62df1b20b5a Mon Sep 17 00:00:00 2001 From: gueldi <45048474+gueldenstone@users.noreply.github.com> Date: Wed, 8 Feb 2023 04:00:26 +0100 Subject: [PATCH] fix(oidc): use _json prop when setting displayName (#6135) * Fixes setting displayName from OIDC Relates to: https://github.com/requarks/wiki/pull/6096 * Update authentication.js --------- Co-authored-by: Nicolas Giard --- server/modules/authentication/oidc/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/authentication/oidc/authentication.js b/server/modules/authentication/oidc/authentication.js index 22a3f2c5..11b7aac9 100644 --- a/server/modules/authentication/oidc/authentication.js +++ b/server/modules/authentication/oidc/authentication.js @@ -29,7 +29,7 @@ module.exports = { profile: { ...profile, email: _.get(profile, '_json.' + conf.emailClaim), - displayName: _.get(profile, conf.displayNameClaim, ''), + displayName: _.get(profile, '_json.' + conf.displayNameClaim, '') } }) if (conf.mapGroups) {