Skip to content

OAuth providers

Bitbucket

Set up Bitbucket OAuth for repository management and CI/CD pipelines

Connect your users to Bitbucket for repository management, pull requests, and CI/CD pipelines.

PropertyValue
Provider IDbitbucket
CategoryDeveloper Tools
PKCENot supported
Token refreshAutomatic
Redirect URIShown in Developer Portal

Go to Bitbucket workspace settings

Navigate to your Bitbucket workspace settings, then go to OAuth consumers.

Add a consumer

Click Add consumer. Enter the application name.

Add the callback URL

Add the Redirect URI from the Developer Portal to the Callback URL field.

Select permissions

Select the required permissions for the application.

Get credentials

Copy the Key (Client ID) and Secret.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Bitbucket provider

Go to OAuth Providers > Add Provider > Bitbucket.

Enter credentials

  • Client ID: Paste your Bitbucket Key
  • Client Secret: Paste your Bitbucket Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

ScopeDescription
accountRead your account information
repositoryRead access to your repositories
repository:writeWrite access to your repositories
pullrequestRead and write access to pull requests
issueRead and write access to issues
webhookRead and write access to webhooks
pipelineRead access to Bitbucket Pipelines CI/CD
pipeline:writeRead and write access to Bitbucket Pipelines
snippetRead and write access to snippets