ClaimsPrincipalExtensions Class
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.
Extensions for System.Security.Claims.ClaimsPrincipal.
public static class ClaimsPrincipalExtensions
type ClaimsPrincipalExtensions = class
Public Module ClaimsPrincipalExtensions
- Inheritance
-
System.ObjectClaimsPrincipalExtensions
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. |