ITwitterEvents Interface¶
Specifies callback methods which the Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware invokes to enable developer control over the authentication process. />
- Namespace
Microsoft.AspNetCore.Authentication.Twitter- Assemblies
- Microsoft.AspNetCore.Authentication.Twitter
Syntax¶
public interface ITwitterEvents : IRemoteAuthenticationEvents
-
interface
Microsoft.AspNetCore.Authentication.Twitter.ITwitterEvents
Methods¶
-
CreatingTicket(Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext)¶ Invoked whenever Twitter succesfully 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.Taskrepresenting the completed operation.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.AuthenticationPropertiesof the challengeReturn type: System.Threading.Tasks.Task Task RedirectToAuthorizationEndpoint(TwitterRedirectToAuthorizationEndpointContext context)
-