Class OpenIddictServerOwinBuilder
Exposes the necessary methods required to configure
the OpenIddict server OWIN/Katana integration.
Inheritance
System.Object
OpenIddictServerOwinBuilder
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictServerOwinBuilder
Constructors
OpenIddictServerOwinBuilder(IServiceCollection)
Declaration
public OpenIddictServerOwinBuilder(IServiceCollection services)
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
The services collection.
|
Properties
Services
Gets the services collection.
Declaration
public IServiceCollection Services { get; }
Property Value
Type |
Description |
IServiceCollection |
|
Methods
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
DisableTransportSecurityRequirement()
Disables the transport security requirement (HTTPS).
Declaration
public OpenIddictServerOwinBuilder DisableTransportSecurityRequirement()
Returns
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
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
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 GetOpenIddictServerResponse(IOwinContext)
Declaration
public OpenIddictServerOwinBuilder EnableErrorPassthrough()
Returns
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
EnableLogoutRequestCaching()
Enables logout request caching, so that logout requests
are automatically stored in the distributed cache.
Declaration
public OpenIddictServerOwinBuilder EnableLogoutRequestCaching()
Returns
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
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
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
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
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
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
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
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()