Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 2.2 KB

File metadata and controls

47 lines (28 loc) · 2.2 KB

This repository contains a basic .NET MAUI application integrated with Auth0 authentication.

Check out the article Add Authentication to .NET MAUI Apps with Auth0 for the implementation details.

Requirements

FOSSA Status

  • .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)

To run this application

  1. Clone the repo with the following command:

    git clone https://github.com/auth0-blog/dotnet-maui-auth0-app.git
  2. Move to the dotnet-maui-auth0-app folder.

  3. Open the MauiProgram.cs file and replace the <YOUR_AUTH0_DOMAIN> and <YOUR_CLIENT_ID> placeholders with your Auth0 domain and client id respectively (see Register with Auth0 for more details).

  4. Open the MainPage.xaml.cs file and replace the <YOUR_API_IDENTIFIER> placeholder with the audience you assigned to the api_aspnet-core_csharp_hello-world API project.

  5. Run the application with Visual Studio 2022 or use one of the following commands based on your target platform:

    # macOS target platform
    dotnet build -t:Run -f net8.0-maccatalyst
    
    # Android target platform
    dotnet build -t:Run -f net8.0-android
    
    # iOS target platform
    dotnet build -t:Run -f net8.0-ios
    
    # Windows target platform (⚠️ Currently not working! ⚠️)
    dotnet build -t:Run -f net8.0-windows10.0.19041.0 -p:WindowsPackageType=None

License

FOSSA Status