Unverified Commit 43a797d3 authored by gueldi's avatar gueldi Committed by GitHub

feat: adds displayName property to OIDC authentication module (#6096)

* Adds displayName property to oidc authentication method * fix: update displayName prop * fix: use blank display name in oidc auth --------- Co-authored-by: 's avatarNicolas Giard <github@ngpixel.com>
parent 5f876ced
...@@ -28,7 +28,8 @@ module.exports = { ...@@ -28,7 +28,8 @@ module.exports = {
providerKey: req.params.strategy, providerKey: req.params.strategy,
profile: { profile: {
...profile, ...profile,
email: _.get(profile, '_json.' + conf.emailClaim) email: _.get(profile, '_json.' + conf.emailClaim),
displayName: _.get(profile, conf.displayNameClaim, ''),
} }
}) })
if (conf.mapGroups) { if (conf.mapGroups) {
......
...@@ -49,21 +49,28 @@ props: ...@@ -49,21 +49,28 @@ props:
default: email default: email
maxWidth: 500 maxWidth: 500
order: 7 order: 7
displayNameClaim:
type: String
title: Display Name Claim
hint: Field containing the user display name
default: displayName
maxWidth: 500
order: 8
mapGroups: mapGroups:
type: Boolean type: Boolean
title: Map Groups title: Map Groups
hint: Map groups matching names from the groups claim value hint: Map groups matching names from the groups claim value
default: false default: false
order: 8 order: 9
groupsClaim: groupsClaim:
type: String type: String
title: Groups Claim title: Groups Claim
hint: Field containing the group names hint: Field containing the group names
default: groups default: groups
maxWidth: 500 maxWidth: 500
order: 9 order: 10
logoutURL: logoutURL:
type: String type: String
title: Logout URL title: Logout URL
hint: (optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process. hint: (optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process.
order: 10 order: 11
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