Share via


OAuthMiddleware<TOptions>.CreateHandler Method

Definition

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

protected:
 override Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> ^ CreateHandler();
protected override Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions> CreateHandler ();
override this.CreateHandler : unit -> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))>
Protected Overrides Function CreateHandler () As AuthenticationHandler(Of TOptions)

Returns

An AuthenticationHandler<TOptions> configured with the OAuthOptions supplied to the constructor.

Applies to