Class MemberClaimsPrincipalExtensions
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class MemberClaimsPrincipalExtensions
Methods
View SourceGetMemberIdentity(ClaimsPrincipal)
Tries to get specifically the member identity from the ClaimsPrincipal
Declaration
public static ClaimsIdentity? GetMemberIdentity(this ClaimsPrincipal principal)
Parameters
| Type | Name | Description |
|---|---|---|
| ClaimsPrincipal | principal | The principal to find the identity in. |
Returns
| Type | Description |
|---|---|
| ClaimsIdentity | The default authenticated authentication type identity. |
Remarks
The identity returned is the one with default authentication type.