Class IdentitySettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven identity and authorization settings for a Cephalon app.
public sealed class IdentitySettingsInheritance
Section titled “Inheritance”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”IdentitySettings(bool?, IReadOnlyList<string>?)
Section titled “ IdentitySettings(bool?, IReadOnlyList<string>?)”Initializes a new instance of the
public IdentitySettings(bool? enabled = null, IReadOnlyList<string>? authorizationModes = null)Parameters
Section titled “Parameters”enabled bool?
Whether identity and authorization support was explicitly enabled.
authorizationModes IReadOnlyList<string>?
The selected authorization modes.
Properties
Section titled “Properties”AuthorizationModes
Section titled “ AuthorizationModes”Gets the selected authorization modes.
public IReadOnlyList<string> AuthorizationModes { get; }Property Value
Section titled “Property Value”Gets an empty identity-settings instance.
public static IdentitySettings Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether identity and authorization support was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any identity settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads identity settings from configuration.
public static IdentitySettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed identity settings.