/AspNet.Security.OAuth.ArcGIS.Sample.API

ASP.NET Core API Sample to test ArcGIS Authentication middleware.

Primary LanguageC#

AspNet.Security.OAuth.ArcGIS.Sample.API

ASP.NET Core API Sample to test ArcGIS Authentication middleware.

How to build

AspNet.Security.OAuth.ArcGIS.Sample.API is built against the latest NET Core 3.

Usage

  • Manage user secrets:
{
  "Credentials": {
    "ClientId": "your-AGOL-client-id-here",
    "ClientSecret": "your-AGOL-client-secret-",
    "AuthorizationEndpoint": "your-AGOL-authorization-endpoint-here",
    "TokenEndpoint": "your-AGOL-token-endpoint-here"
  }
}
  • Run dotnet run -p .\AspNet.Security.OAuth.ArcGIS.Sample.API\AspNet.Security.OAuth.ArcGIS.Sample.API.csproj

  • Test API with Swagger or directly.