This repository contains a basic .NET MAUI application and an ASP.NET Core Web API. Both applications are integrated with Auth0 and the .NET MAUI application calls a protected API endpoint.
Check out the article Call a Protected API from a .NET MAUI Application for the implementation details.
- .NET 8 SDK installed on your machine
- The required assets needed for your target(s) platform(s) as described here
- Visual Studio 2022 for Windows or Visual Studio 2022 for Mac (optional)
-
Clone the repo with the following command:
git clone https://github.com/auth0-blog/dotnet-maui-auth0-call-api.git
-
Move to the
api_aspnet-core_csharp_hello-world
folder. -
Follow the instructions in the README document to set up the ASP.NET Core Web API.
-
Move to the
dotnet-maui-auth0-app
folder. -
Follow the instructions in the README document to set up the .NET MAUI application.