* Added the podbean auth provider. * Updated Readme to include podbean * Fixed Owin nuget reference * Removed regions from around using statements, corrected the VS version in the solution file and changed the Startup.Auth in the demo project to use spaces instead of tabs. * Added the OAuth refresh token to the PodbeanAuthenticatedContext.
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
#region
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
#endregion
|
|
|
|
namespace Owin.Security.Providers.Podbean
|
|
{
|
|
/// <summary>
|
|
/// Specifies callback methods which the <see cref="PodbeanAuthenticationMiddleware"></see> invokes to enable developer
|
|
/// control over the authentication process. />
|
|
/// </summary>
|
|
public interface IPodbeanAuthenticationProvider
|
|
{
|
|
/// <summary>
|
|
/// Invoked whenever Podbean 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(PodbeanAuthenticatedContext 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(PodbeanReturnEndpointContext context);
|
|
}
|
|
} |