ClaimsPrincipalExtensions.GetMsalAccountId(ClaimsPrincipal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.