ClaimsPrincipalExtensions.GetHomeTenantId(ClaimsPrincipal) Method

Definition

Gets the Home Tenant ID associated with the ClaimsPrincipal.

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

Parameters

claimsPrincipal
ClaimsPrincipal

The ClaimsPrincipal from which to retrieve the sub claim.

Returns

Home Tenant ID (sub) of the identity, or null if it cannot be found.

Applies to