Search Results for

    Show / Hide Table of Contents

    Class ClientAuthenticationSettings

    Authentication settings for the client.

    Inheritance
    object
    ClientAuthenticationSettings
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Authentication.Core.Settings
    Assembly: LemonEdge.Authentication.Core.dll
    Syntax
    public class ClientAuthenticationSettings

    Constructors

    ClientAuthenticationSettings()

    Declaration
    public ClientAuthenticationSettings()

    Properties

    AAD

    The AAD client settings.

    Declaration
    public AzureADClientAuthenticationSettings AAD { get; set; }
    Property Value
    Type Description
    AzureADClientAuthenticationSettings

    B2C

    The B2C client settings.

    Declaration
    public AzureADB2CClientAuthenticationSettings B2C { get; set; }
    Property Value
    Type Description
    AzureADB2CClientAuthenticationSettings

    JWT

    JWT (WebService username and password). Should have a non-null value to enable direct to WebService.

    Declaration
    public string JWT { get; set; }
    Property Value
    Type Description
    string

    Local

    A list of local provider keys. Should look like this:

    "Local":[
        "UNPW",
        "WIN"
        ]

    UNPW is username + password direct to DB. WIN is Windows integrated direct to DB.

    Declaration
    public string[] Local { get; set; }
    Property Value
    Type Description
    string[]

    OKTA

    The Okta client settings.

    Declaration
    public OktaClientAuthenticationSettings OKTA { get; set; }
    Property Value
    Type Description
    OktaClientAuthenticationSettings

    Windows

    Windows key. Should have a non-null value to enable Windows.

    Declaration
    public string? Windows { get; set; }
    Property Value
    Type Description
    string

    Methods

    Available(bool)

    List the available keys.

    Declaration
    public string[] Available(bool validOnly = true)
    Parameters
    Type Name Description
    bool validOnly
    Returns
    Type Description
    string[]

    BuildDefaultsIfAllInvalid()

    If everything is empty (the client has no config at all) then create just the bare minimum for local and for JWT.

    Declaration
    public void BuildDefaultsIfAllInvalid()

    IsValid(string)

    Checks if a config is valid, by key.

    Declaration
    public bool IsValid(string key)
    Parameters
    Type Name Description
    string key

    The key

    Returns
    Type Description
    bool

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.