Class IdentityRuntimeOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Identity.Configuration
Assembly: Cephalon.Identity.dll
Describes host-agnostic runtime options for the Cephalon identity companion pack.
public sealed class IdentityRuntimeOptionsInheritance
Section titled “Inheritance”object ← IdentityRuntimeOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”IdentityRuntimeOptions(bool, bool, bool)
Section titled “ IdentityRuntimeOptions(bool, bool, bool)”Initializes a new instance of the
public IdentityRuntimeOptions(bool enableDefaultEvaluator = true, bool enableRuntimeSurface = true, bool requireExplicitPolicy = true)Parameters
Section titled “Parameters”enableDefaultEvaluator bool
Whether the built-in metadata-driven IAuthorizationEvaluator should stay active.
enableRuntimeSurface bool
Whether the companion pack should project identity and authorization runtime metadata through the shared technology surface set.
requireExplicitPolicy bool
Whether callers must provide an explicit AuthorizationContext.PolicyId when using the built-in
metadata-driven evaluator.
Properties
Section titled “Properties”EnableDefaultEvaluator
Section titled “ EnableDefaultEvaluator”Gets or sets a value indicating whether the built-in metadata-driven authorization evaluator is active.
public bool EnableDefaultEvaluator { get; set; }Property Value
Section titled “Property Value”EnableRuntimeSurface
Section titled “ EnableRuntimeSurface”Gets or sets a value indicating whether the pack should publish a runtime surface under
identity-access.
public bool EnableRuntimeSurface { get; set; }Property Value
Section titled “Property Value”RequireExplicitPolicy
Section titled “ RequireExplicitPolicy”Gets or sets a value indicating whether authorization calls must provide an explicit policy identifier.
public bool RequireExplicitPolicy { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration?, string)
Section titled “ FromConfiguration(IConfiguration?, string)”Reads identity runtime options from configuration.
public static IdentityRuntimeOptions FromConfiguration(IConfiguration? configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration?
The root configuration that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed identity runtime options.