This repository contains a Blazor Web application with Interactive Auto render mode secured with Auth0 and calling an internal and an external API.
The following article describes the implementation details: Call Protected APIs from a Blazor Web App.
Clone the repo: git clone https://github.com/auth0-blog/blazor-interactive-auto-call-api
To run the applications:
- Go to the
ExternalAPI
folder - Follow the instructions in the
README.md
file to register, configure, and run the API. - Move to the
BlazorIntAuto
folder - Add your Auth0 credentials to the
appsettings.json
configuration file. - Type
dotnet run
in a terminal window. - Point your browser to
https://localhost:7255
.
- .NET SDK 8.0 installed on your machine
- An Auth0 account.