Example application to demonstrate how to integrate Auth0 in a .NET MAUI application, using IdentityModel.OidcClient
.
Ensure to create or use an existing Native application on Auth0, with the following things configured:
- Allowed Callback URLs:
myapp://callback
- Allowed Logout URLs:
myapp://callback
Provide the correct values for both the Authority
and the ClientId
in MainPage.xaml.cs
.
- Authority: Replace with your auth0 domain, including
https://
(e.g.https://your-company.us.auth0.com
) - ClientId: Replace with the client id of the native application in Auth0.