TwitterEvents Class

Default Microsoft.AspNetCore.Authentication.Twitter.ITwitterEvents implementation.

Namespace
Microsoft.AspNetCore.Authentication.Twitter
Assemblies
  • Microsoft.AspNetCore.Authentication.Twitter

Syntax

public class TwitterEvents : RemoteAuthenticationEvents, ITwitterEvents, IRemoteAuthenticationEvents
class Microsoft.AspNetCore.Authentication.Twitter.TwitterEvents

Methods

CreatingTicket(Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext)

Invoked whenever Twitter successfully authenticates a user

Arguments:context (Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext) – Contains information about the login session as well as the user System.Security.Claims.ClaimsIdentity.
Return type:System.Threading.Tasks.Task
Returns:A System.Threading.Tasks.Task representing the completed operation.
public virtual Task CreatingTicket(TwitterCreatingTicketContext context)
RedirectToAuthorizationEndpoint(Microsoft.AspNetCore.Authentication.Twitter.TwitterRedirectToAuthorizationEndpointContext)

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

Arguments:context (Microsoft.AspNetCore.Authentication.Twitter.TwitterRedirectToAuthorizationEndpointContext) – Contains redirect URI and Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties of the challenge
Return type:System.Threading.Tasks.Task
public virtual Task RedirectToAuthorizationEndpoint(TwitterRedirectToAuthorizationEndpointContext context)

Properties

Microsoft.AspNetCore.Authentication.Twitter.TwitterEvents.OnCreatingTicket

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

Return type:System.Func<Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext>
public Func<TwitterCreatingTicketContext, Task> OnCreatingTicket { get; set; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterEvents.OnRedirectToAuthorizationEndpoint

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

Return type:System.Func<Microsoft.AspNetCore.Authentication.Twitter.TwitterRedirectToAuthorizationEndpointContext>
public Func<TwitterRedirectToAuthorizationEndpointContext, Task> OnRedirectToAuthorizationEndpoint { get; set; }