C# Класс System.Security.Claims.ClaimsPrincipalExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

FindFirstValue() публичный статический Метод

public static FindFirstValue ( this principal, string claimType, bool throwIfNotFound = false ) : string
principal this
claimType string
throwIfNotFound bool
Результат string

GetDisplayNameValue() публичный статический Метод

public static GetDisplayNameValue ( this principal ) : string
principal this
Результат string

GetEmailValue() публичный статический Метод

public static GetEmailValue ( this principal ) : string
principal this
Результат string

GetIssuerValue() публичный статический Метод

public static GetIssuerValue ( this principal, bool throwIfNotFound = true ) : string
principal this
throwIfNotFound bool
Результат string

GetObjectIdentifierValue() публичный статический Метод

public static GetObjectIdentifierValue ( this principal, bool throwIfNotFound = true ) : string
principal this
throwIfNotFound bool
Результат string

GetSurveyTenantIdValue() публичный статический Метод

public static GetSurveyTenantIdValue ( this principal ) : int
principal this
Результат int

GetSurveyUserIdValue() публичный статический Метод

public static GetSurveyUserIdValue ( this principal ) : int
principal this
Результат int

GetTenantIdValue() публичный статический Метод

Extension method on System.Security.Claims.ClaimsPrincipal which returns the AAD Tenant ID, if it exists.
public static GetTenantIdValue ( this principal ) : string
principal this A representing the currently signed in ASP.NET user.
Результат string

GetUserName() публичный статический Метод

public static GetUserName ( this principal ) : string
principal this
Результат string

IsSignedInToApplication() публичный статический Метод

public static IsSignedInToApplication ( this principal ) : bool
principal this
Результат bool