// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; namespace Microsoft.AspNetCore.Authentication.Twitter { /// /// Specifies callback methods which the invokes to enable developer control over the authentication process. /> /// public interface ITwitterEvents : IRemoteAuthenticationEvents { /// /// Invoked whenever Twitter succesfully authenticates a user /// /// Contains information about the login session as well as the user . /// A representing the completed operation. Task CreatingTicket(TwitterCreatingTicketContext context); /// /// Called when a Challenge causes a redirect to authorize endpoint in the Twitter middleware /// /// Contains redirect URI and of the challenge Task RedirectToAuthorizationEndpoint(TwitterRedirectToAuthorizationEndpointContext context); } }