Skip to main content
Connect your AI agent to Bitbucket to manage repositories, automate pull request creation and management, and integrate with CI/CD pipelines to report build statuses.

Connect Bitbucket to Auth0

1

Bitbucket setup

  1. Visit the Bitbucket Developer account page and sign up.
  2. Navigate to workspace settings.
  3. Add a new OAuth 2.0 consumer.
  4. Fill in the required details.
  5. Configure OAuth redirect URL:
    • Redirect URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  6. Set permissions/scopes.
  7. Click Save.
  8. Toggle the consumer name to see the generated Key and Secret value for your consumer.
  9. Copy the Consumer Key and Consumer Secret.
To learn more about setting up Bitbucket, read the Login with Bitbucket documentation.
2

Auth0 setup

Token Vault configuration example

To configure the Token Vault for your Bitbucket connection, you can use the following code snippet in your application:

Next steps