File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ public static string GetDomainHint(this ClaimsPrincipal claimsPrincipal)
100100 /// <remarks>See https://docs.microsoft.com/azure/active-directory/develop/id-tokens#payload-claims </remarks>
101101 public static string GetDisplayName ( this ClaimsPrincipal claimsPrincipal )
102102 {
103- // Attempting the claims brought by an Microsoft identity platform (v2.O) token first
103+ // Use the claims in an Microsoft identity platform token first
104104 string displayName = claimsPrincipal . FindFirstValue ( ClaimConstants . PreferredUserName ) ;
105105
106- // Otherwise falling back to the claims brought by an Azure AD v1.0 token
106+ // Otherwise fall back to the claims in an Azure AD v1.0 token
107107 if ( string . IsNullOrWhiteSpace ( displayName ) )
108108 {
109109 displayName = claimsPrincipal . FindFirstValue ( ClaimsIdentity . DefaultNameClaimType ) ;
You can’t perform that action at this time.
0 commit comments