auth0-blog / dotnet-maui-auth0-app

Apache License 2.0
17 stars 7 forks source link

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

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