Use "name" claim in OIDC SSO for display name #7359
RaphaelRoumezin
started this conversation in
Ideas
Replies: 1 comment 2 replies
|
This makes a lot more sense considering that's what the OIDC spec suggests. The current implementation can cause issues with multiple providers. For example, using Google as an IdP causes the WebUI to display the user's email address as the display name instead of the string from the OIDC |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When creating a user from SSO, the code uses the OIDC claim "preferred_username" for the username, which is usually more of a login username than a display name, which is more how vaultwarden uses it. Entra ID, for instance, uses UPN, which might just be the email address.
vaultwarden/src/sso.rs
Line 291 in d6a3d53
The OIDC spec indicates the field "name" as more fitting for a display name:
https://openid.net/specs/openid-connect-core-1_0.html#Claims
So we could either:
Feel free to comment you insights on this idea.
All reactions