Class DanglIdentityServerConfiguration
The IDanglIdentityConfig to be used server-side
Inheritance
Implements
Inherited Members
Namespace: Dangl.Identity.Client.Mvc.Configuration
Assembly: Dangl.Identity.Client.Mvc.dll
Syntax
[Serializable]
public class DanglIdentityServerConfiguration : IDanglIdentityConfig
Properties
| Improve this Doc View SourceAuthorizationSetupAction
Custom authorization setup action
Declaration
public Action<AuthorizationOptions> AuthorizationSetupAction { get; }
Property Value
Type | Description |
---|---|
System.Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> |
BaseUri
The primary base url of the Dangl.Identity service
Declaration
public string BaseUri { get; }
Property Value
Type | Description |
---|---|
System.String |
ClientId
The ClientId to use when interacting with the Dangl.Identity service
Declaration
public string ClientId { get; }
Property Value
Type | Description |
---|---|
System.String |
ClientSecret
The ClientSecret to use when interacting with the Dangl.Identity service
Declaration
public string ClientSecret { get; }
Property Value
Type | Description |
---|---|
System.String |
FallbackBaseUri
The fallback base url of the Dangl.Identity service
Declaration
public string FallbackBaseUri { get; }
Property Value
Type | Description |
---|---|
System.String |
FallbackTokenEndpoint
The absolute fallback token endpoint
Declaration
public string FallbackTokenEndpoint { get; }
Property Value
Type | Description |
---|---|
System.String |
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> |
MvcBuilderConfig
Additional MvcBuilder config
Declaration
public Action<IMvcBuilder> MvcBuilderConfig { get; }
Property Value
Type | Description |
---|---|
System.Action<Microsoft.Extensions.DependencyInjection.IMvcBuilder> |
MvcSetupAction
Custom MVC setup configuration
Declaration
public Action<MvcOptions> MvcSetupAction { get; }
Property Value
Type | Description |
---|---|
System.Action<Microsoft.AspNetCore.Mvc.MvcOptions> |
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 |
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 |
TokenEndpoint
The absolute token endpoint
Declaration
public string TokenEndpoint { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 SourceValidate()
Throws if the configuration is invalid
Declaration
public void Validate()