Files
OwinOAuthProviders/src/Owin.Security.Providers.Baidu/Provider/IBaiduAuthenticationProvider.cs
denis32000 ed5615cd9f Added providers for Box and Baidu (#179)
* Added project with provider for Box cloud service
* Added Baidu provider
2016-10-06 15:49:04 -04:00

24 lines
1.2 KiB
C#

using System.Threading.Tasks;
namespace Owin.Security.Providers.Baidu
{
/// <summary>
/// Specifies callback methods which the <see cref="BaiduAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process. />
/// </summary>
public interface IBaiduAuthenticationProvider
{
/// <summary>
/// Invoked whenever Baidu successfully authenticates a user
/// </summary>
/// <param name="context">Contains information about the login session as well as the user <see cref="System.Security.Claims.ClaimsIdentity"/>.</param>
/// <returns>A <see cref="Task"/> representing the completed operation.</returns>
Task Authenticated(BaiduAuthenticatedContext context);
/// <summary>
/// Invoked prior to the <see cref="System.Security.Claims.ClaimsIdentity"/> being saved in a local cookie and the browser being redirected to the originally requested URL.
/// </summary>
/// <param name="context"></param>
/// <returns>A <see cref="Task"/> representing the completed operation.</returns>
Task ReturnEndpoint(BaiduReturnEndpointContext context);
}
}