Skip to content

Commit 301b4d6

Browse files
authored
Merge pull request #79 from rwike77/patch-2
Branding updates
2 parents abbe001 + 46812d0 commit 301b4d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.Identity.Web/ClaimPrincipalExtension.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ public static string GetDomainHint(this ClaimsPrincipal claimsPrincipal)
102102
/// Get the display name for the signed-in user, from the <see cref="ClaimsPrincipal"/>
103103
/// </summary>
104104
/// <param name="claimsPrincipal">Claims about the user/account</param>
105-
/// <returns>A string containing the display name for the user, as brought by Azure AD v1.0 and v2.0 tokens,
105+
/// <returns>A string containing the display name for the user, as brought by Azure AD (v1.0) and Microsoft identity platform (v2.0) tokens,
106106
/// or <c>null</c> if the claims cannot be found</returns>
107107
/// <remarks>See https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens#payload-claims </remarks>
108108
public static string GetDisplayName(this ClaimsPrincipal claimsPrincipal)
109109
{
110-
// Attempting the claims brought by an Azure AD v2.0 token first
110+
// Attempting the claims brought by a v2.0 token first
111111
string displayName = claimsPrincipal.FindFirstValue(ClaimConstants.PreferredUserName);
112112

113-
// Otherwise falling back to the claims brought by an Azure AD v1.0 token
113+
// Otherwise falling back to the claims brought by a v1.0 token
114114
if (string.IsNullOrWhiteSpace(displayName))
115115
{
116116
displayName = claimsPrincipal.FindFirstValue(ClaimsIdentity.DefaultNameClaimType);

0 commit comments

Comments
 (0)