Show / Hide Table of Contents

    Class DanglIdentityServerConfiguration

    The IDanglIdentityConfig to be used server-side

    Inheritance
    System.Object
    DanglIdentityServerConfiguration
    Implements
    IDanglIdentityConfig
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Dangl.Identity.Client.Mvc.Configuration
    Assembly: Dangl.Identity.Client.Mvc.dll
    Syntax
    [Serializable]
    public class DanglIdentityServerConfiguration : IDanglIdentityConfig

    Properties

    | Improve this Doc View Source

    AuthorizationSetupAction

    Custom authorization setup action

    Declaration
    public Action<AuthorizationOptions> AuthorizationSetupAction { get; }
    Property Value
    Type Description
    System.Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions>
    | Improve this Doc View Source

    BaseUri

    The primary base url of the Dangl.Identity service

    Declaration
    public string BaseUri { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ClientId

    The ClientId to use when interacting with the Dangl.Identity service

    Declaration
    public string ClientId { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ClientSecret

    The ClientSecret to use when interacting with the Dangl.Identity service

    Declaration
    public string ClientSecret { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    FallbackBaseUri

    The fallback base url of the Dangl.Identity service

    Declaration
    public string FallbackBaseUri { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    FallbackTokenEndpoint

    The absolute fallback token endpoint

    Declaration
    public string FallbackTokenEndpoint { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    HttpMessageHandlerFactory

    This can be used to supply a custom handler for JWT / OAuth2 operations

    Declaration
    public Func<HttpMessageHandler> HttpMessageHandlerFactory { get; }
    Property Value
    Type Description
    System.Func<System.Net.Http.HttpMessageHandler>
    | Improve this Doc View Source

    MvcBuilderConfig

    Additional MvcBuilder config

    Declaration
    public Action<IMvcBuilder> MvcBuilderConfig { get; }
    Property Value
    Type Description
    System.Action<Microsoft.Extensions.DependencyInjection.IMvcBuilder>
    | Improve this Doc View Source

    MvcSetupAction

    Custom MVC setup configuration

    Declaration
    public Action<MvcOptions> MvcSetupAction { get; }
    Property Value
    Type Description
    System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>
    | Improve this Doc View Source

    RelativeLoginUrl

    The login url that is used on the client service. This is used for delegated logins, e.g. say a service that internally uses Dangl.Identity authentication at https://identity.dangl-it.com but has a local login UI at e.g. https://www.my-service.com/login. This is used, for example, in welcome emails and redirections

    Declaration
    public string RelativeLoginUrl { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RequiredScope

    The required scope to use when interacting with the Dangl.Identity service. If multiple scopes are required, they should be given as a space-delimited string, e.g. "scope1 scope2".

    Declaration
    public string RequiredScope { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TokenEndpoint

    The absolute token endpoint

    Declaration
    public string TokenEndpoint { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    UseDanglIdentityOpenIdCookieAuthentication

    Defaults to false. If enabled, Dangl.Identity will be added as OpenID provider and used for login cookies. It will also be set as the default authentication scheme. Jwt Token authentication will be disabled in that case.

    Declaration
    public bool UseDanglIdentityOpenIdCookieAuthentication { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    UseMemoryCacheUserInfoUpdater

    Defaults to true. If set, the MemoryCacheUserInfoUpdaterCache will be used as IUserInfoUpdaterCache along with the default Asp.Net Core MemoryCache implementation. If set to fals, you have to supply your own cache.

    Declaration
    public bool UseMemoryCacheUserInfoUpdater { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Validate()

    Throws if the configuration is invalid

    Declaration
    public void Validate()

    Implements

    IDanglIdentityConfig

    Extension Methods

    DanglIdentityServerConfigurationExtensions.SetClientId(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetClientSecret(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetRequiredScope(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetBaseUri(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetFallbackBaseUri(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetRelativeLoginUrl(DanglIdentityServerConfiguration, String)
    DanglIdentityServerConfigurationExtensions.SetUseMemoryCacheUserInfoUpdater(DanglIdentityServerConfiguration, Boolean)
    DanglIdentityServerConfigurationExtensions.SetUseDanglIdentityOpenIdCookieAuthentication(DanglIdentityServerConfiguration, Boolean)
    DanglIdentityServerConfigurationExtensions.SetMvcSetupAction(DanglIdentityServerConfiguration, Action<MvcOptions>)
    DanglIdentityServerConfigurationExtensions.SetAuthorizationSetupAction(DanglIdentityServerConfiguration, Action<AuthorizationOptions>)
    DanglIdentityServerConfigurationExtensions.SetMvcBuilderConfig(DanglIdentityServerConfiguration, Action<IMvcBuilder>)
    DanglIdentityServerConfigurationExtensions.SetHttpMessageHandlerFactory(DanglIdentityServerConfiguration, Func<HttpMessageHandler>)
    ObjectExtensions.Clone<T>(T)
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl