File tree 1 file changed +2
-2
lines changed
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)
100
100
/// <remarks>See https://docs.microsoft.com/azure/active-directory/develop/id-tokens#payload-claims </remarks>
101
101
public static string GetDisplayName ( this ClaimsPrincipal claimsPrincipal )
102
102
{
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
104
104
string displayName = claimsPrincipal . FindFirstValue ( ClaimConstants . PreferredUserName ) ;
105
105
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
107
107
if ( string . IsNullOrWhiteSpace ( displayName ) )
108
108
{
109
109
displayName = claimsPrincipal . FindFirstValue ( ClaimsIdentity . DefaultNameClaimType ) ;
You can’t perform that action at this time.
0 commit comments