Files
OwinOAuthProviders/src/Owin.Security.Providers.ArcGISPortal/Provider/IArcGISPortalAuthenticationProvider.cs
Gavin Harriss 7bdabb4cb7 ArcGIS Portal provider (#214)
* ArcGIS Portal provider added
Originally attempted to inherit from ArcGIS Online provider, but a fair amount of refactoring is required to allow inheritance for everything that needs changing. To be revisited when time allows.
2017-12-08 10:37:16 -05:00

24 lines
1.2 KiB
C#

using System.Threading.Tasks;
namespace Owin.Security.Providers.ArcGISPortal
{
/// <summary>
/// Specifies callback methods which the <see cref="ArcGISPortalAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process. />
/// </summary>
public interface IArcGISPortalAuthenticationProvider
{
/// <summary>
/// Invoked whenever ArcGISPortal 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(ArcGISPortalAuthenticatedContext 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(ArcGISPortalReturnEndpointContext context);
}
}