Class DebugClaimFilter<TUser>
Logs all claims.
Inherited Members
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class DebugClaimFilter<TUser> : IClaimFilter<TUser> where TUser : class, IUser
Type Parameters
|
TUser
|
Constructors
DebugClaimFilter(ILogger<DebugClaimFilter<TUser>>)
Creates a new instance of DebugClaimFilter<TUser>.
Declaration
public DebugClaimFilter(ILogger<DebugClaimFilter<TUser>> logger)
Parameters
|
Microsoft.Extensions.Logging.ILogger<DebugClaimFilter<TUser>>
logger
The logger used to log messages, warnings and errors. |
Properties
Order
Gets or sets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property.
Declaration
public int Order { get; set; }
Property Value
|
System.Int32
|
Implements
Remarks
Filters are executed in an ordering determined by an ascending sort of the Order property.
If two filters have the same numeric value of Order, then their relative execution order is in the order they are registered.
Methods
ExecuteAsync(ClaimFilterContext<TUser>, CancellationToken)
Executes the filter to allow for manipulation of the claims for the current sign-in.
Declaration
public virtual Task ExecuteAsync(ClaimFilterContext<TUser> context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
|
ClaimFilterContext<TUser>
context
The ClaimFilterContext<TUser> with information about the on-going sign-in. |
|
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
|
System.Threading.Tasks.Task
The System.Threading.Tasks.Task that represents the asynchronous operation. |