Skip to content

Class IdentityRuntimeOptions

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

Describes host-agnostic runtime options for the Cephalon identity companion pack.

public sealed class IdentityRuntimeOptions

objectIdentityRuntimeOptions

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 IdentityRuntimeOptions(bool enableDefaultEvaluator = true, bool enableRuntimeSurface = true, bool requireExplicitPolicy = true)

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.

Gets or sets a value indicating whether the built-in metadata-driven authorization evaluator is active.

public bool EnableDefaultEvaluator { get; set; }

bool

Gets or sets a value indicating whether the pack should publish a runtime surface under identity-access.

public bool EnableRuntimeSurface { get; set; }

bool

Gets or sets a value indicating whether authorization calls must provide an explicit policy identifier.

public bool RequireExplicitPolicy { get; set; }

bool

FromConfiguration(IConfiguration?, string)

Section titled “ FromConfiguration(IConfiguration?, string)”

Reads identity runtime options from configuration.

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

configuration IConfiguration?

The root configuration that contains the engine section.

sectionPath string

The root configuration section path to read from.

IdentityRuntimeOptions

The parsed identity runtime options.