Provides extension methods for the System.Security.Claims.ClaimsPrincipal class.
public static class ClaimsPrincipalExtensions
string GetIdentity(this ClaimsPrincipal principal)Summary: Retrieves the object identifier claim value from the claims principal, typically used for Azure AD authentication.
Parameters:
principal- The claims principal to extract the identity from.Returns: The object identifier claim value if found; otherwise, .
Generated by MarkdownCodeDoc version 1.2