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.
Login to Bitbucket. Click on your account icon in the upper right and select Bitbucket settings. Select OAuth in the left nav.
To create your app, click Add consumer. Provide a name for your app. In the Callback URL field, enter the following:
Select the Permissions you want to enable for this connection. At the very least you will need to select the
To get your Key and Secret, on the page that follows, click the name of your app under OAuth consumers to reveal your keys.
Copy your Client Id and Client Secret into Auth0. In a separate window, log in to your Auth0 Dashboard and select Connections > Social in the left nav. Select Bitbucket:
- Copy the
Secretfrom the OAuth integrated applications page on Bitbucket into the fields on this page on Auth0. Select the Permissions you want to enable. Click SAVE.
- To 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.
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.