using System.Threading.Tasks;
namespace Owin.Security.Providers.Google.Provider
{
///
/// Specifies callback methods which the invokes to enable developer control over the authentication process. />
///
public interface IGoogleAuthenticationProvider
{
///
/// Invoked whenever Google successfully authenticates a user
///
/// Contains information about the login session as well as the user .
/// A representing the completed operation.
Task Authenticated(GoogleAuthenticatedContext context);
///
/// Invoked prior to the being saved in a local cookie and the browser being redirected to the originally requested URL.
///
///
/// A representing the completed operation.
Task ReturnEndpoint(GoogleReturnEndpointContext context);
}
}