* 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.
20 lines
599 B
C#
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;
|
|
}
|
|
}
|
|
} |