Table of Contents

Class FrameworkRoleResolver

Namespace
The.Web.Security
Assembly
Instagile.Web.Client.dll

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

principal ClaimsPrincipal
cancellationToken CancellationToken

Returns

Task<ClaimsPrincipal>