Xamarin.Android
and Xamarin.iOS
. If you are still using
Xamarin.Android
and Xamarin.iOS
, you can follow this guide as the integration is
identical, and the SDKs are compatible.YOUR_PACKAGE_NAME://{yourDomain}/android/YOUR_PACKAGE_NAME/callback
YOUR_BUNDLE_ID://{yourDomain}/ios/YOUR_BUNDLE_ID/callback
YOUR_PACKAGE_NAME://{yourDomain}/android/YOUR_PACKAGE_NAME/callback
iOS: YOUR_BUNDLE_ID://{yourDomain}/ios/YOUR_BUNDLE_ID/callback
YOUR_PACKAGE_NAME://{yourDomain}/android/YOUR_PACKAGE_NAME/callback
YOUR_BUNDLE_ID://{yourDomain}/ios/YOUR_BUNDLE_ID/callback
YOUR_PACKAGE_NAME://{yourDomain}/android/YOUR_PACKAGE_NAME/callback
iOS: YOUR_BUNDLE_ID://{yourDomain}/ios/YOUR_BUNDLE_ID/callback
Auth0.OidcClient.AndroidX
or Auth0.OidcClient.iOS
package, depending on whether you are
building an Android or iOS application.Alternatively, you can use the NuGet Package Manager Console (Install-Package
) or the
dotnet
CLI (dotnet add
).Auth0Client
class, passing
an instance of Auth0ClientOptions
that contains your Auth0 Domain and Client ID.Auth0Client
should now be properly instantiated. Run your application to verify that:Auth0Client
is instantiated correctly in the Activity
(Android) or
UIViewController
(iOS).YOUR_ANDROID_PACKAGE_NAME
in the code sample with the actual Package Name for your
application, such as com.mycompany.myapplication
, and ensure that all the text for the
DataScheme
, DataHost
, and DataPathPrefix
is in lowercase. Also, set
LaunchMode = LaunchMode.SingleTask
for the Activity; otherwise, the system will create a new instance
of the activity every time the Callback URL gets called.Additionally, you need to handle the intent in the OnNewIntent
event in your Activity
class. You need to notify the Auth0 OIDC Client to finish the authentication flow by calling the Send
method of the ActivityMediator
singleton, passing along the URL that was sent in.Info.plist
file in Visual Studio, and go to the **Advanced **tab.Bundle Identifier
, and the **Role **as None
.info.plist
file after you have added the URL
Type:OpenUrl
event in your
AppDelegate
class. You need to notify the Auth0 OIDC Client to finish the authentication flow by
calling the Send
method of the ActivityMediator
singleton, passing along the URL that
was sent in.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.