ข้ามไปยังเนื้อหา

Class IdentityAspNetCoreOptions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Identity.AspNetCore.Configuration
Assembly: Cephalon.Identity.AspNetCore.dll

Describes ASP.NET Core-specific identity and authorization adapter options for Cephalon.

public sealed class IdentityAspNetCoreOptions

objectIdentityAspNetCoreOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public IdentityAspNetCoreOptions()

Gets or sets a value indicating whether can be used as the subject id fallback when none of the configured claim types are present.

public bool AllowIdentityNameAsSubjectIdFallback { get; set; }

bool

Gets or sets the key that stores the most recent Cephalon authorization decision for the current request.

public string AuthorizationDecisionItemKey { get; set; }

string

Gets the claim types that can provide the human-readable display name for the current subject.

public List<string> DisplayNameClaimTypes { get; }

List<string>

Gets or sets a value indicating whether unmatched claims should be projected into .

public bool IncludeAllClaimsAsSubjectAttributes { get; set; }

bool

Gets or sets a value indicating whether request headers should be projected into .

public bool IncludeHeadersAsContextAttributes { get; set; }

bool

Gets or sets a value indicating whether query-string values should be projected into .

public bool IncludeQueryStringAsContextAttributes { get; set; }

bool

Gets or sets a value indicating whether route values should be projected into .

public bool IncludeRouteValuesAsResourceAttributes { get; set; }

bool

Gets the route-value keys that can provide the owning subject identifier for the current resource.

public List<string> OwnerSubjectIdRouteKeys { get; }

List<string>

Gets the route-value keys that can provide the current resource identifier.

public List<string> ResourceIdRouteKeys { get; }

List<string>

Gets the claim types that can provide role memberships for the current subject.

public List<string> RoleClaimTypes { get; }

List<string>

Gets the claim types that can provide the stable Cephalon authorization subject identifier.

public List<string> SubjectIdClaimTypes { get; }

List<string>

Gets the claim types that can provide tenant memberships for the current subject.

public List<string> TenantClaimTypes { get; }

List<string>

Gets the request-header names that can provide the current tenant identifier when route values do not.

public List<string> TenantHeaderNames { get; }

List<string>

Gets the route-value keys that can provide the current tenant identifier.

public List<string> TenantRouteKeys { get; }

List<string>

FromConfiguration(IConfiguration?, string)

Section titled “ FromConfiguration(IConfiguration?, string)”

Reads ASP.NET Core identity adapter options from configuration.

public static IdentityAspNetCoreOptions FromConfiguration(IConfiguration? configuration, string sectionPath = "Engine")

configuration IConfiguration?

The root configuration that contains the engine section.

sectionPath string

The engine root section path to read from.

IdentityAspNetCoreOptions

The parsed ASP.NET Core identity adapter options.