ClaimsPrincipalExtensions Class

Definition

Extensions for System.Security.Claims.ClaimsPrincipal.

public static class ClaimsPrincipalExtensions
type ClaimsPrincipalExtensions = class
Public Module ClaimsPrincipalExtensions
Inheritance
System.Object
ClaimsPrincipalExtensions

Methods

GetDisplayName(ClaimsPrincipal)

Get the display name for the signed-in user, from the System.Security.Claims.ClaimsPrincipal.

GetDomainHint(ClaimsPrincipal)

Gets the domain-hint associated with an identity.

GetHomeObjectId(ClaimsPrincipal)

Gets the Home Object ID associated with the System.Security.Claims.ClaimsPrincipal.

GetHomeTenantId(ClaimsPrincipal)

Gets the Home Tenant ID associated with the System.Security.Claims.ClaimsPrincipal.

GetLoginHint(ClaimsPrincipal)

Gets the login-hint associated with a System.Security.Claims.ClaimsPrincipal.

GetMsalAccountId(ClaimsPrincipal)

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

GetNameIdentifierId(ClaimsPrincipal)

Gets the NameIdentifierId associated with the System.Security.Claims.ClaimsPrincipal.

GetObjectId(ClaimsPrincipal)

Gets the unique object ID associated with the System.Security.Claims.ClaimsPrincipal.

GetTenantId(ClaimsPrincipal)

Gets the Tenant ID associated with the System.Security.Claims.ClaimsPrincipal.

GetUserFlowId(ClaimsPrincipal)

Gets the user flow ID associated with the System.Security.Claims.ClaimsPrincipal.

Applies to