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