Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 2.03 KB

README.md

File metadata and controls

45 lines (27 loc) · 2.03 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. 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