Method | Description | |
---|---|---|
FindFirstValue ( this principal, string claimType, bool throwIfNotFound = false ) : string | ||
GetDisplayNameValue ( this principal ) : string | ||
GetEmailValue ( this principal ) : string | ||
GetIssuerValue ( this principal, bool throwIfNotFound = true ) : string | ||
GetObjectIdentifierValue ( this principal, bool throwIfNotFound = true ) : string | ||
GetSurveyTenantIdValue ( this principal ) : int | ||
GetSurveyUserIdValue ( this principal ) : int | ||
GetTenantIdValue ( this principal ) : string |
Extension method on System.Security.Claims.ClaimsPrincipal which returns the AAD Tenant ID, if it exists.
|
|
GetUserName ( this principal ) : string | ||
IsSignedInToApplication ( this principal ) : bool |
public static FindFirstValue ( this principal, string claimType, bool throwIfNotFound = false ) : string | ||
principal | this | |
claimType | string | |
throwIfNotFound | bool | |
return | string |
public static GetDisplayNameValue ( this principal ) : string | ||
principal | this | |
return | string |
public static GetEmailValue ( this principal ) : string | ||
principal | this | |
return | string |
public static GetIssuerValue ( this principal, bool throwIfNotFound = true ) : string | ||
principal | this | |
throwIfNotFound | bool | |
return | string |
public static GetObjectIdentifierValue ( this principal, bool throwIfNotFound = true ) : string | ||
principal | this | |
throwIfNotFound | bool | |
return | string |
public static GetSurveyTenantIdValue ( this principal ) : int | ||
principal | this | |
return | int |
public static GetSurveyUserIdValue ( this principal ) : int | ||
principal | this | |
return | int |
public static GetTenantIdValue ( this principal ) : string | ||
principal | this | A |
return | string |
public static GetUserName ( this principal ) : string | ||
principal | this | |
return | string |
public static IsSignedInToApplication ( this principal ) : bool | ||
principal | this | |
return | bool |