Show / Hide Table of Contents

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)
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.

Properties

Services

Gets the services collection.

Declaration
public IServiceCollection Services { get; }
Property Value
Type Description
IServiceCollection

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

The 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

The 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

The 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

The 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

The 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

The 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

The 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

The 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

The 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

The OpenIddictServerOwinBuilder.

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
Type Description
OpenIddictServerOwinBuilder

The 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

The 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

The OpenIddictServerOwinBuilder.

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
In This Article
Back to top Generated by DocFX