OAuthMiddleware<TOptions> Class

Definition

An ASP.NET Core middleware for authenticating users using OAuth services.

generic <typename TOptions>
 where TOptions : OAuthOptionsgcnew()public ref class OAuthMiddleware : Microsoft::AspNetCore::Authentication::AuthenticationMiddleware<TOptions>
public class OAuthMiddleware<TOptions> : Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions> where TOptions : OAuthOptions, new()
type OAuthMiddleware<'Options (requires 'Options :> OAuthOptions and 'Options : (new : unit -> 'Options))> = class
    inherit AuthenticationMiddleware<'Options (requires 'Options :> OAuthOptions and 'Options : (new : unit -> 'Options))>
Public Class OAuthMiddleware(Of TOptions)
Inherits AuthenticationMiddleware(Of TOptions)

Type Parameters

TOptions
Inheritance
OAuthMiddleware<TOptions>
Derived

Constructors

OAuthMiddleware<TOptions>(RequestDelegate, IDataProtectionProvider, ILoggerFactory, UrlEncoder, IOptions<SharedAuthenticationOptions>, IOptions<TOptions>)

Initializes a new OAuthMiddleware<TOptions>.

Properties

AuthenticationScheme (Inherited from AuthenticationMiddleware<TOptions>)
Backchannel
Logger (Inherited from AuthenticationMiddleware<TOptions>)
Options (Inherited from AuthenticationMiddleware<TOptions>)
UrlEncoder (Inherited from AuthenticationMiddleware<TOptions>)

Methods

CreateHandler()

Provides the AuthenticationHandler<TOptions> object for processing authentication-related requests.

Invoke(HttpContext) (Inherited from AuthenticationMiddleware<TOptions>)

Applies to