TwitterEvents Class

Definition

Default TwitterEvents implementation.

C#
public class TwitterEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents, Microsoft.AspNetCore.Authentication.Twitter.ITwitterEvents
C#
public class TwitterEvents : 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 Authenticated method is invoked.

OnRedirectToAuthorizationEndpoint

Gets or sets the delegate that is invoked when the ApplyRedirect 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(TwitterCreatingTicketContext)

Invoked whenever Twitter successfully authenticates a user

RedirectToAuthorizationEndpoint(RedirectContext<TwitterOptions>)

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

RedirectToAuthorizationEndpoint(TwitterRedirectToAuthorizationEndpointContext)

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

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