Skip to main content
Administrator access to a Bitbucket workspace is required to create an OAuth consumer. The Account Read permission is required for the connection to work.

Creating an OAuth Consumer

To connect Bitbucket with StackOne, you’ll need to create an OAuth consumer from your workspace settings.

1

Access Workspace Settings

Sign in to your Bitbucket account.

  • Select your avatar/profile from the top navigation
  • Choose your workspace from Recent workspaces or All workspaces
  • Click the Settings cog icon
  • Select Workspace settings from the dropdown
2

Navigate to OAuth Consumers

In the left sidebar, expand the Apps and features section, then click OAuth consumers.

3

Add a New Consumer

Click the Add consumer button to create a new OAuth application.

  • Name: Enter a unique name (e.g., StackOne Integration)
  • Description: Optional description of the integration
  • Callback URL: Enter https://api.stackone.com/connect/oauth2/bitbucket/callback
  • URL: Optional link to your application
4

Configure Permissions

Select the required OAuth permissions for your integration based on which Bitbucket resources you need to access. Permissions are configured on the OAuth consumer and cannot be changed per authorization request.

  • Account (Required): Read permission is required for the connection. Selecting Account Read automatically enables Account Email as a dependency. Write is optional (modify account properties).
  • Projects: Read (view projects and repositories), Admin (full admin access)
  • Repositories: Read, Write, Admin (view/edit permissions, deploy keys), Delete
  • Pull requests: Read (view pull requests), Write (create, merge, and decline pull requests)
  • Pipelines: Read (view pipelines and environments), Write (stop, rerun, trigger), Edit variables (create pipeline variables)
  • Select only the permissions required for your specific integration needs
5

Save and Retrieve Credentials

Click Save to create the OAuth consumer. After saving, you will be redirected to the OAuth consumers list.

  • Click the chevron arrow (›) next to your consumer name to expand and reveal the credentials
  • The Key is your Client ID
  • The Secret is your Client Secret
  • Copy both values and store them securely for use later

Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for Bitbucket:
1

Navigate to Connector Profiles

Login to StackOne and navigate to Connector Profiles
2

Create New Connector Profile

  • Click + Connector Profile
  • Search for and select Bitbucket
  • Select Type as OAuth 2.0 (Legacy)
  • Fill out the fields using details retrieved from your provider:
    • Client ID
    • Client Secret
  • (Optional) Select Actions to be enabled for this Connector Profile
  • Click Create profile
Congratulations! The new Connector Profile will now show up in your project ready to be used. You can now continue to Link Accounts for Bitbucket.