Skip to content

Class IdentitySettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven identity and authorization settings for a Cephalon app.

public sealed class IdentitySettings

objectIdentitySettings

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

IdentitySettings(bool?, IReadOnlyList<string>?)

Section titled “ IdentitySettings(bool?, IReadOnlyList<string>?)”

Initializes a new instance of the class.

public IdentitySettings(bool? enabled = null, IReadOnlyList<string>? authorizationModes = null)

enabled bool?

Whether identity and authorization support was explicitly enabled.

authorizationModes IReadOnlyList<string>?

The selected authorization modes.

Gets the selected authorization modes.

public IReadOnlyList<string> AuthorizationModes { get; }

IReadOnlyList<string>

Gets an empty identity-settings instance.

public static IdentitySettings Empty { get; }

IdentitySettings

Gets a value indicating whether identity and authorization support was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any identity settings were explicitly supplied.

public bool HasValues { get; }

bool

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Reads identity settings from configuration.

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

configuration IConfiguration

The configuration source that contains the engine section.

sectionPath string

The root configuration section path to read from.

IdentitySettings

The parsed identity settings.