Skip to content

Commit

Permalink
fix(oidc): use _json prop when setting displayName (#6135)
Browse files Browse the repository at this point in the history
* Fixes setting displayName from OIDC

Relates to: #6096

* Update authentication.js

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
  • Loading branch information
gueldenstone and NGPixel authored Feb 8, 2023
1 parent ac930fc commit bba1d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/authentication/oidc/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bba1d1b

Please sign in to comment.