Class VirtualRoleClaimsTransformer
Inheritance
System.Object
VirtualRoleClaimsTransformer
Implements
Microsoft.AspNetCore.Authentication.IClaimsTransformation
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class VirtualRoleClaimsTransformer : Object, IClaimsTransformation
Constructors
VirtualRoleClaimsTransformer(Func<IVirtualRoleAuthorizationSession>, IVirtualRoleRepository)
Declaration
public VirtualRoleClaimsTransformer(Func<IVirtualRoleAuthorizationSession> authorization, IVirtualRoleRepository repository)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IVirtualRoleAuthorizationSession> | authorization | |
IVirtualRoleRepository | repository |
Methods
TransformAsync(ClaimsPrincipal)
Declaration
public Task<ClaimsPrincipal> TransformAsync(ClaimsPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Claims.ClaimsPrincipal | principal |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> |
Implements
Microsoft.AspNetCore.Authentication.IClaimsTransformation