Why is the extension method ClaimsPrincipalExtensions.GetDisplayName returns claim preferred_username first #1650
Unanswered
mgrosperrin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Do you know why the extension method
ClaimsPrincipalExtensions.GetDisplayName
in the projectMicrosoft.Identity.Web.TokenCache
returns the value of the claimpreferred_username
first and not the claimhttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/name
orname
?It is a little disturbing to have the login of the user as display name...
Thanks for your insights😄
Beta Was this translation helpful? Give feedback.
All reactions