Class OpenIddictServerOwinBuilder
Exposes the necessary methods required to configure the OpenIddict server OWIN/Katana integration.
Inheritance
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictServerOwinBuilder
Constructors
OpenIddictServerOwinBuilder(IServiceCollection)
Initializes a new instance of OpenIddictServerOwinBuilder.
Declaration
public OpenIddictServerOwinBuilder(IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The services collection. |
Methods
Configure(Action<OpenIddictServerOwinOptions>)
Amends the default OpenIddict server OWIN/Katana configuration.
Declaration
public OpenIddictServerOwinBuilder Configure(Action<OpenIddictServerOwinOptions> configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<OpenIddictServerOwinOptions> | configuration | The delegate used to configure the OpenIddict options. |
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
Remarks
This extension can be safely called multiple times.
DisableTransportSecurityRequirement()
Disables the transport security requirement (HTTPS).
Declaration
public OpenIddictServerOwinBuilder DisableTransportSecurityRequirement()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableAuthorizationEndpointPassthrough()
Enables the pass-through mode for the OpenID Connect authorization endpoint. When the pass-through mode is used, OpenID Connect requests are initially handled by OpenIddict. Once validated, the rest of the request processing pipeline is invoked, so that OpenID Connect requests can be handled at a later stage (in a custom middleware or in a MVC controller, for instance).
Declaration
public OpenIddictServerOwinBuilder EnableAuthorizationEndpointPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableAuthorizationRequestCaching()
Enables authorization request caching, so that authorization requests are automatically stored in the distributed cache, which allows flowing large payloads across requests. Enabling this option is recommended when using external authentication providers or when large GET or POST OpenID Connect authorization requests support is required.
Declaration
public OpenIddictServerOwinBuilder EnableAuthorizationRequestCaching()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableErrorPassthrough()
Enables error pass-through support, so that the rest of the request processing pipeline is
automatically invoked when returning an error from the interactive authorization and logout endpoints.
When this option is enabled, special logic must be added to these actions to handle errors, that can be
retrieved using
Declaration
public OpenIddictServerOwinBuilder EnableErrorPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableLogoutEndpointPassthrough()
Enables the pass-through mode for the OpenID Connect logout endpoint. When the pass-through mode is used, OpenID Connect requests are initially handled by OpenIddict. Once validated, the rest of the request processing pipeline is invoked, so that OpenID Connect requests can be handled at a later stage (in a custom middleware or in a MVC controller, for instance).
Declaration
public OpenIddictServerOwinBuilder EnableLogoutEndpointPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableLogoutRequestCaching()
Enables logout request caching, so that logout requests are automatically stored in the distributed cache.
Declaration
public OpenIddictServerOwinBuilder EnableLogoutRequestCaching()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableTokenEndpointPassthrough()
Enables the pass-through mode for the OpenID Connect token endpoint. When the pass-through mode is used, OpenID Connect requests are initially handled by OpenIddict. Once validated, the rest of the request processing pipeline is invoked, so that OpenID Connect requests can be handled at a later stage (in a custom middleware or in a MVC controller, for instance).
Declaration
public OpenIddictServerOwinBuilder EnableTokenEndpointPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableUserinfoEndpointPassthrough()
Enables the pass-through mode for the OpenID Connect userinfo endpoint. When the pass-through mode is used, OpenID Connect requests are initially handled by OpenIddict. Once validated, the rest of the request processing pipeline is invoked, so that OpenID Connect requests can be handled at a later stage (in a custom middleware or in a MVC controller, for instance).
Declaration
public OpenIddictServerOwinBuilder EnableUserinfoEndpointPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
EnableVerificationEndpointPassthrough()
Enables the pass-through mode for the OpenID Connect user verification endpoint. When the pass-through mode is used, OpenID Connect requests are initially handled by OpenIddict. Once validated, the rest of the request processing pipeline is invoked, so that OpenID Connect requests can be handled at a later stage (in a custom middleware or in a MVC controller, for instance).
Declaration
public OpenIddictServerOwinBuilder EnableVerificationEndpointPassthrough()
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
SetAuthorizationRequestCachingPolicy(DistributedCacheEntryOptions)
Sets the caching policy used by the authorization endpoint. Note: the specified policy is only used when caching is explicitly enabled.
Declaration
public OpenIddictServerOwinBuilder SetAuthorizationRequestCachingPolicy(DistributedCacheEntryOptions policy)
Parameters
| Type | Name | Description |
|---|---|---|
| DistributedCacheEntryOptions | policy | The caching policy. |
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
SetLogoutRequestCachingPolicy(DistributedCacheEntryOptions)
Sets the caching policy used by the logout endpoint. Note: the specified policy is only used when caching is explicitly enabled.
Declaration
public OpenIddictServerOwinBuilder SetLogoutRequestCachingPolicy(DistributedCacheEntryOptions policy)
Parameters
| Type | Name | Description |
|---|---|---|
| DistributedCacheEntryOptions | policy | The caching policy. |
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |
SetRealm(String)
Sets the realm returned to the caller as part of the WWW-Authenticate header.
Declaration
public OpenIddictServerOwinBuilder SetRealm(string realm)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | realm | The issuer address. |
Returns
| Type | Description |
|---|---|
| OpenIddictServerOwinBuilder |