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.
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. At the very least you will need to select the
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.
Secret from the OAuth integrated applications page on Bitbucket into the fields on this page on Auth0.
Select the Permissions you want to enable.
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 Grant access to allow your app access.
If you have configured everything correctly, you will see the It works!!! page:
Now that you have a working connection, the next step is to configure your application to use it. You can follow our step-by-step quickstarts or use directly our libraries and API.