Auth0.Android Configuration Options
Auth0.Android can be configured with a variety of options, listed below.
withConnection option allows you to specify a connection that you wish to authenticate with.
Code grant is the default mode, and will always be used unless calling
false, or unless the device doesn't support the signing/hashing algorithms.
Before you can use
Code Grant in Android, make sure to go to your Dashboard and check in the application's settings that
Application Type is
Using scopes can allow you to return specific claims for specific fields in your request. Adding parameters to
withScope will allow you to add more scopes. You should read our documentation on scopes for further details about them.
Note that the default scope used is
There may be times when you need to authenticate with particular connection scopes, or permissions, from the Authentication Provider in question. Auth0 has documentation on setting up connection scopes for external Authentication Providers. However, if you need specific access for a particular situation in your app you can do so by passing parameters to
withConnectionScope. A full listing of available parameters can be found in that connection's settings in your Dashboard, or from the Authentication Providers's documentation. The scope requested here is added on top of the ones specified in the connection's settings in the Dashboard.
To send additional parameters on the authentication, use
If you are not using Android "App Links" or you want to use a different scheme for the redirect URI, then use
withScheme. Note that you'll need to update the
auth0Scheme Manifest Placeholder in the
app/build.gradle file and the whitelisted Allowed Callback URLs on the Dashboard in the Application's settings to match the chosen scheme.
To provide an audience, use
By default a random state is always generated and sent. If you need to use a custom value instead, use
By default a random nonce is generated and sent when the response type includes
id_token. If you need to use a custom value instead, use