This repository contains a basic glossary CRUD Web API implemented in ASP.NET and secured with Auth0.
The following article describes the implementation details: Managing Authorization for ASP.NET Web APIs
-
Clone the repo with the following command:
git clone --branch add-authorization --single-branch https://github.com/auth0-blog/glossary-web-api-aspnet.git
-
Move to the
glossary-web-api-aspnetfolder -
Add your Auth0 domain and API identifier to the
appsettings.jsonconfiguration file (see Registering the Web API with Auth0 for more details). -
Type
dotnet runin a terminal window to launch the Web API. -
Point your browser to
https://localhost:5001/swaggerto test the available endpoints and actions.
- .NET Core SDK installed on your machine
