Partager via


ClaimsPrincipalExtensions.GetMsalAccountId(ClaimsPrincipal) Method

Definition

Gets the account identifier for an MSAL.NET account from a ClaimsPrincipal.

public static string? GetMsalAccountId (this System.Security.Claims.ClaimsPrincipal claimsPrincipal);
static member GetMsalAccountId : System.Security.Claims.ClaimsPrincipal -> string
<Extension()>
Public Function GetMsalAccountId (claimsPrincipal As ClaimsPrincipal) As String

Parameters

claimsPrincipal
ClaimsPrincipal

Claims principal.

Returns

A string corresponding to an account identifier as defined in Identifier.

Applies to