Table of Contents

Class Auth0Client

Namespace
Auth0.OidcClient
Assembly
Auth0.OidcClient.dll

Primary class for performing authentication and authorization operations with Auth0 using the underlying IdentityModel.OidcClient.OidcClient.

public class Auth0Client : Auth0ClientBase, IAuth0Client
Inheritance
Auth0Client
Implements
Inherited Members

Constructors

Auth0Client(Auth0ClientOptions)

Create a new instance of Auth0Client with a given Auth0ClientOptions.

public Auth0Client(Auth0ClientOptions options)

Parameters

options Auth0ClientOptions

The Auth0ClientOptions specifying the configuration to use.

Remarks

options.RedirectUri must match your Android.App.ActivityAndroid.Content.IntentFilterPriority DataScheme, DataPathPrefix and DataHost values. If not supplied it will presume the convention

$"{Context.PackageName}://{options.Domain}/android/{Context.PackageName}/callback".ToLower();
. Your Android.App.IntentFilterAttribute should have DataScheme, DataPathPrefix and DataHost with values that match. Alternatively set Auth0ClientOptions RedirectUri and PostLogoutRedirectUri to match your Android.App.IntentFilterAttribute. DataScheme must be lower-case or Android will not receive the callbacks.

Auth0Client(Auth0ClientOptions, Activity)

Create a new instance of Auth0Client with a given Auth0ClientOptions and Android.Content.Context.

public Auth0Client(Auth0ClientOptions options, Activity activity)

Parameters

options Auth0ClientOptions

The Auth0ClientOptions specifying the configuration to use.

activity Activity

The Android.App.Activity with the Android.App.IntentFilterAttribute you perform calls to Auth0Client from.

Remarks

options.RedirectUri must match your IntentFilter attribute's DataScheme, DataPathPrefix and DataHost values. If not supplied it will first try to detect the registered IntentFilter automatically if your supplied activity. If it does it will presume the convention

$"{Context.PackageName}://{options.Domain}/android/{Context.PackageName}/callback".ToLower();
. Your Android.Content.IntentFilter attribute used to register for callbacks should have DataScheme, DataPathPrefix and DataHost with need values that match. Alternatively set the RedirectUri manually to match your IntentFilter. Please note that DataScheme should be lower-case or Android will not listen to callbacks.