Browse Source

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 <github@ngpixel.com>
pull/6185/head
gueldi 2 years ago
committed by GitHub
parent
commit
bba1d1b574
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      server/modules/authentication/oidc/authentication.js

2
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) {

Loading…
Cancel
Save