myapp://callback
.myapp://callback
.Auth0.OidcClient.MAUI
package.Alternatively, you can use the NuGet Package Manager Console (Install-Package
) or the
dotnet
CLI (dotnet add
).WebAuthenticatorCallbackActivity
:myapp://callback
URL when Auth0
redirects back to the Android application after logging in.Package.appxmanifest
. In this case, this is set to
myapp
, but you can change this to whatever you like (ensure to update all relevant Auth0 URLs as
well).Activator.Default.CheckRedirectionActivation()
in the Windows-specific
App.xaml.cs
file.Auth0Client
class, passing
an instance of Auth0ClientOptions
that contains your Auth0 Domain, Client ID and the required Scopes.
Additionally, you also need to configure the RedirectUri
and PostLogoutRedirectUri
to
ensure Auth0 can redirect back to the application using the URL(s) configured.Auth0Client
should now be properly instantiated. Run your application to verify that:Auth0Client
is instantiated correctly in the MainPage
.LoginAsync()
method to create a login button that redirects users
to the Auth0 Universal Login page.User
, IdentityToken
,
AccessToken
and RefreshToken
on the LoginResult
returned from
LoginAsync()
.LogoutAsync()
method. When users log out, they will be redirected to your Auth0 logout endpoint,
which will then immediately redirect them back to the logout URL you set up earlier in this quickstart.LoginResult.User
property.