Show / Hide Table of Contents

Class EnsureNameClaimFilter<TUser>

Copies the PreferredUserName as Name if name is missing.

Inheritance
Object
BaseClaimFilter<TUser>
EnsureNameClaimFilter<TUser>
Inherited Members
BaseClaimFilter<TUser>.Order
BaseClaimFilter<TUser>.RemoveClaim(ClaimFilterContext<TUser>, String, Boolean)
BaseClaimFilter<TUser>.AddClaim(ClaimFilterContext<TUser>, Claim, Boolean)
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class EnsureNameClaimFilter<TUser> : BaseClaimFilter<TUser>, IClaimFilter<TUser> where TUser : class, IUser
Type Parameters
TUser

Constructors

EnsureNameClaimFilter()

Creates a new instance of EnsureNameClaimFilter<TUser>.

Declaration
public EnsureNameClaimFilter()

Methods

ExecuteAsync(ClaimFilterContext<TUser>, CancellationToken)

Executes the filter to allow for manipulation of the claims for the current sign-in.

Declaration
public override 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.

Overrides
IRM.AspNetCore.Identity.BaseClaimFilter<TUser>.ExecuteAsync(IRM.AspNetCore.Identity.ClaimFilterContext<TUser>, System.Threading.CancellationToken)
Back to top Generated by DocFX