Class OpenIddictValidationOwinHelpers
Exposes companion extensions for the OpenIddict/OWIN integration.
Inheritance
System.Object
OpenIddictValidationOwinHelpers
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Owin
Assembly: cs.temp.dll.dll
Syntax
public static class OpenIddictValidationOwinHelpers
Methods
GetOpenIddictValidationEndpointType(IOwinContext)
Retrieves the
Declaration
public static OpenIddictValidationEndpointType GetOpenIddictValidationEndpointType(this IOwinContext context)
Parameters
Type | Name | Description |
---|---|---|
IOwinContext | context | The context instance. |
Returns
Type | Description |
---|---|
OpenIddictValidationEndpointType | The |
GetOpenIddictValidationRequest(IOwinContext)
Retrieves the
Declaration
public static OpenIddictRequest? GetOpenIddictValidationRequest(this IOwinContext context)
Parameters
Type | Name | Description |
---|---|---|
IOwinContext | context | The context instance. |
Returns
Type | Description |
---|---|
System.Nullable<OpenIddictRequest> | The |
GetOpenIddictValidationResponse(IOwinContext)
Retrieves the
Declaration
public static OpenIddictResponse? GetOpenIddictValidationResponse(this IOwinContext context)
Parameters
Type | Name | Description |
---|---|---|
IOwinContext | context | The context instance. |
Returns
Type | Description |
---|---|
System.Nullable<OpenIddictResponse> | The |
GetOwinRequest(OpenIddictValidationTransaction)
Retrieves the
Declaration
public static IOwinRequest? GetOwinRequest(this OpenIddictValidationTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
OpenIddictValidationTransaction | transaction | The transaction instance. |
Returns
Type | Description |
---|---|
System.Nullable<IOwinRequest> | The |
UseOpenIddictValidation(IAppBuilder)
Registers the OpenIddict validation OWIN middleware in the application pipeline. Note: when using a dependency injection container supporting per-request middleware resolution (like Autofac), calling this method is NOT recommended.
Declaration
public static IAppBuilder UseOpenIddictValidation(this IAppBuilder app)
Parameters
Type | Name | Description |
---|---|---|
IAppBuilder | app | The application builder used to register middleware instances. |
Returns
Type | Description |
---|---|
IAppBuilder | The |