Unverified Commit bba1d1b5 authored by gueldi's avatar gueldi Committed by GitHub

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: 's avatarNicolas Giard <github@ngpixel.com>
parent ac930fc2
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment