Skip to content

Commit

Permalink
Fix the XML documentation for ClaimsPrincipalExtensions.GetNameIdenti…
Browse files Browse the repository at this point in the history
…fierId

Fixes the XML documentation for ClaimsPrincipalExtensions.GetNameIdentifierId
therefore addressing #171
  • Loading branch information
jmprieur authored Jun 10, 2020
1 parent 5f70e63 commit e728808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ public static string GetHomeTenantId(this ClaimsPrincipal claimsPrincipal)
/// <summary>
/// Gets the NameIdentifierId associated with the <see cref="ClaimsPrincipal"/>.
/// </summary>
/// <param name="claimsPrincipal">the <see cref="ClaimsPrincipal"/> from which to retrieve the sub claim.</param>
/// <returns>Name identifier ID (sub) of the identity, or <c>null</c> if it cannot be found.</returns>
/// <param name="claimsPrincipal">the <see cref="ClaimsPrincipal"/> from which to retrieve the <c>uid</c> claim.</param>
/// <returns>Name identifier ID (uid) of the identity, or <c>null</c> if it cannot be found.</returns>
public static string GetNameIdentifierId(this ClaimsPrincipal claimsPrincipal)
{
return claimsPrincipal.FindFirstValue(ClaimConstants.UniqueObjectIdentifier);
Expand Down

0 comments on commit e728808

Please sign in to comment.