OAuthEvents Class

Definition

Default implementation.

C#
public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents, Microsoft.AspNetCore.Authentication.OAuth.IOAuthEvents
C#
public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents
Inheritance
Implements

Constructors

Properties

OnAccessDenied

Invoked when an access denied error was returned by the remote server.

(Inherited from RemoteAuthenticationEvents)
OnCreatingTicket

Gets or sets the function that is invoked when the CreatingTicket method is invoked.

OnRedirectToAuthorizationEndpoint

Gets or sets the delegate that is invoked when the RedirectToAuthorizationEndpoint method is invoked.

OnRemoteFailure

Invoked when there is a remote failure.

(Inherited from RemoteAuthenticationEvents)
OnTicketReceived

Invoked after the remote ticket has been received.

(Inherited from RemoteAuthenticationEvents)

Methods

AccessDenied(AccessDeniedContext)

Invoked when an access denied error was returned by the remote server.

(Inherited from RemoteAuthenticationEvents)
CreatingTicket(OAuthCreatingTicketContext)

Invoked after the provider successfully authenticates a user.

RedirectToAuthorizationEndpoint(OAuthRedirectToAuthorizationContext)

Called when a Challenge causes a redirect to authorize endpoint in the OAuth middleware.

RedirectToAuthorizationEndpoint(RedirectContext<OAuthOptions>)

Called when a Challenge causes a redirect to authorize endpoint in the OAuth handler.

RemoteFailure(FailureContext)

Invoked when there is a remote failure

(Inherited from RemoteAuthenticationEvents)
RemoteFailure(RemoteFailureContext)

Invoked when there is a remote failure.

(Inherited from RemoteAuthenticationEvents)
TicketReceived(TicketReceivedContext)

Invoked after the remote ticket has been received.

(Inherited from RemoteAuthenticationEvents)

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0