Connect your app to Bitbucket

To connect your Auth0 app to Bitbucket, you will need to generate a Key and Secret in a Bitbucket app, copy these keys into your Auth0 settings, and enable the connection.

Lock version

This connection will only work with Lock version 9.2 or higher.

1. Login to Bitbucket

Login to Bitbucket.

Click on your account icon in the upper right and select Bitbucket settings:

Select OAuth in the left nav:

2. Create your app

Click Add consumer.

Provide a name for your app.

In the Callback URL field, enter the folowing:


Select the Permissions you want to enable for this connection.

Click Save.

3. Get your Key and Secret

On the page that follows, click the name of your app under OAuth consumers to reveal your keys:

4. Copy your Client Id and Client Secret into Auth0

In a separate window, login to your Auth0 Dashboard and select Connections > Social in the left nav.

Select Bitbucket:

Copy the Key and Secret from the OAuth integrated applications page on Bitbucket into the fields on this page on Auth0.

Select the Permissions you want to enable.

Click SAVE.

5. Enable the Connection

Go to the Apps tab of the Bitbucket connection on Auth0 and select each of your existing Auth0 apps for which you want to enable this connection:

6. Test the connection

Close the Settings window to return to the Connections > Social section of the Auth0 dashboard.

A TRY icon will now be displayed next to the Bitbucket logo:

Click TRY.

Click Grant access to allow your app access.

If you have configured everything correctly, you will see the It works!!! page: