Skip to content

Commit bba1d1b

Browse files
fix(oidc): use _json prop when setting displayName (#6135)
* Fixes setting displayName from OIDC Relates to: #6096 * Update authentication.js --------- Co-authored-by: Nicolas Giard <github@ngpixel.com>
1 parent ac930fc commit bba1d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/modules/authentication/oidc/authentication.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
profile: {
3030
...profile,
3131
email: _.get(profile, '_json.' + conf.emailClaim),
32-
displayName: _.get(profile, conf.displayNameClaim, ''),
32+
displayName: _.get(profile, '_json.' + conf.displayNameClaim, '')
3333
}
3434
})
3535
if (conf.mapGroups) {

0 commit comments

Comments
 (0)