Class ClaimFilterContext<TUser>
Represent an on-going processing of claims in the context of a IClaimFilter<TUser>
Inherited Members
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class ClaimFilterContext<TUser>
where TUser : class, IUser
Type Parameters
TUser
|
Constructors
ClaimFilterContext(ClaimsPrincipal, String, String, Nullable<Guid>)
Declaration
public ClaimFilterContext(ClaimsPrincipal principal, string caller, string loginProvider, Guid? tenantId = null)
Parameters
System.Security.Claims.ClaimsPrincipal
principal
|
String
caller
|
String
loginProvider
|
System.Nullable<System.Guid>
tenantId
|
Properties
AdditionalUserClaims
A collection of additional claims that should be saved on the user.
Declaration
public List<Claim> AdditionalUserClaims { get; }
Property Value
List<System.Security.Claims.Claim>
|
Caller
ExternalPrincipal
Gets or sets the System.Security.Claims.ClaimsPrincipal from an external sign-in.
Declaration
public ClaimsPrincipal ExternalPrincipal { get; set; }
Property Value
System.Security.Claims.ClaimsPrincipal
|
Remarks
LoginProvider
The login provider that performed the sign-in.
Declaration
public string LoginProvider { get; }
Property Value
String
|
Principal
The System.Security.Claims.ClaimsPrincipal of the on-going sign-in. It is possible to add claims to the user, but if the claims should always be available on the user they also must be added to AdditionalUserClaims.
Declaration
public ClaimsPrincipal Principal { get; }
Property Value
System.Security.Claims.ClaimsPrincipal
|
RemoveUserClaimTypes
A collection of claim types that should be removed from the user, if they exists.
Declaration
public List<string> RemoveUserClaimTypes { get; }
Property Value
List<String>
|
TenantId
Gets the unique identifier of the tenant for the current sign-in, if known.
Declaration
public Guid? TenantId { get; }
Property Value
System.Nullable<System.Guid>
|
UserManager
Gets the ExtendedUserManager<TUser> that runs the filter.
Declaration
public ExtendedUserManager<TUser> UserManager { get; }
Property Value
ExtendedUserManager<TUser>
|