Docs

Android Development Keystores and Key Hashes

Versionv2

When creating a new OAuth Credential for many connections you will need to provide the SHA-1 of the certificate you're using to sign your application. When completing your Application's configuration in the Auth0 Dashboard you will also need to provide the SHA-256 value.

Locate the certificate you're using to sign your application. If you don't have one you can generate it. For production applications, you should do this.

During development, you can sign your application with the default android.keystore certificate that was generated automatically for you when you installed the SDK. In this example we're going to use this default keystore. To generate the key hashes using this keystore follow the examples below.

Generating your key hashes

On Windows:

On Linux / macOS:

Sample output:

Using your key hashes

Once you have your key hashes output, copy the resulting SHA256 value and go to your application's settings in the Auth0 Dashboard. Click "Show Advanced Settings", and in the "Mobile Settings" tab, under "Android", fill the "App Package Name" with your application's package name, and the "Key Hashes" field with the SHA256 value you copied. Don't forget to save the changes.

If you don't add the Callback URL to the application settings nor the Key Hashes to the application's mobile settings, the Auth0 server won't return the call result to your application.