Skip to content

Commit 8138f5f

Browse files
committed
Fixing a couple of comments
1 parent 4dbe43c commit 8138f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs

+2-2
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)