Class FrameworkRoleResolver
Gives an identity read from the framework's sign-in cookie, which carries no roles, the roles that IAuthorisation currently grants it.
public sealed class FrameworkRoleResolver
- Inheritance
-
FrameworkRoleResolver
- Inherited Members
Remarks
Instagile.Web calls this from every cookie scheme's OnValidatePrincipal event; applications that replace that event should call it too.
Methods
ResolveAsync(ClaimsPrincipal, CancellationToken)
Returns principal with the current roles of a framework identity, unchanged if it has none, or null if its roles can't be looked up.
public Task<ClaimsPrincipal?> ResolveAsync(ClaimsPrincipal principal, CancellationToken cancellationToken)
Parameters
principalClaimsPrincipalcancellationTokenCancellationToken