Files
OwinOAuthProviders/src/Owin.Security.Providers.ArcGISPortal/ArcGISPortalAuthenticationExtensions.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

20 lines
599 B
C#

using System;
namespace Owin.Security.Providers.ArcGISPortal
{
public static class ArcGISPortalAuthenticationExtensions
{
public static IAppBuilder UseArcGISPortalAuthentication(this IAppBuilder app,
ArcGISPortalAuthenticationOptions options)
{
if (app == null)
throw new ArgumentNullException(nameof(app));
if (options == null)
throw new ArgumentNullException(nameof(options));
app.Use(typeof(ArcGISPortalAuthenticationMiddleware), app, options);
return app;
}
}
}