IOAuthEvents Interface

Definition

Specifies callback methods which the OAuthMiddleware<TOptions> invokes to enable developer control over the authentication process.

C#
public interface IOAuthEvents : Microsoft.AspNetCore.Authentication.IRemoteAuthenticationEvents
Derived
Implements

Methods

CreatingTicket(OAuthCreatingTicketContext)

Invoked after the provider successfully authenticates a user. This can be used to retrieve user information. This event may not be invoked by sub-classes of OAuthAuthenticationHandler if they override CreateTicketAsync.

RedirectToAuthorizationEndpoint(OAuthRedirectToAuthorizationContext)

Called when a Challenge causes a redirect to the authorize endpoint.

RemoteFailure(FailureContext)

Invoked when the remote authentication process has an error.

(Inherited from IRemoteAuthenticationEvents)
TicketReceived(TicketReceivedContext)

Invoked before sign in.

(Inherited from IRemoteAuthenticationEvents)

Applies to

Product Versions
ASP.NET Core 1.0, 1.1