Show / Hide Table of Contents

Class ClaimFilterContext<TUser>

Represent an on-going processing of claims in the context of a IClaimFilter<TUser>

Inheritance
Object
ClaimFilterContext<TUser>
Inherited Members
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 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

Gets the caller.

Declaration
public string Caller { get; }
Property Value
String

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

Can be same as Principal depending on Caller.

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>

Back to top Generated by DocFX