Bitbucket
Instructions for setting up Bitbucket authentication integration for NocoDB
This document provides instructions for setting up the Bitbucket authentication integration for NocoDB.
Environment Variables
To enable OAuth2 authentication with Bitbucket, you need to configure the following environment variables.
Step 1: Create a Bitbucket OAuth Consumer
- Log in to your Bitbucket account
- Navigate to Bitbucket Administration Workspace settings → OAuth consumers
- (Bitbucket → left sidebar → click your workspace → Workspace settings → OAuth consumers)
- Click on “Add consumer”
- Fill out the form:
-
Name: Your application name (e.g., "NocoDB")
-
Description: Brief description of your application
-
Callback URL:
https://your-nocodb-instance.com/ -
Permissions: Enable:
-
Repositories: Read & Write
-
Pull requests: Read & Write
-
Issues: Read & Write
-
Account: Read
- Click Save
Step 2: Get Client ID and Client Secret
After creating your OAuth consumer:
- Bitbucket will display:
- Key → Client ID
- Secret → Client Secret
- Copy both values (the Secret is shown only once)
- Store them safely for configuration
Step 3: Set Environment Variables
Configure your NocoDB instance with:
INTEGRATION_AUTH_BITBUCKET_CLIENT_ID=your_bitbucket_client_id
INTEGRATION_AUTH_BITBUCKET_CLIENT_SECRET=your_bitbucket_client_secret
INTEGRATION_AUTH_BITBUCKET_REDIRECT_URI=your_redirect_uriWhere:
your_bitbucket_client_id→ The Key (Client ID) from Bitbucketyour_bitbucket_client_secret→ The Secret (Client Secret)your_redirect_uri→ The callback URL used in the OAuth consumer (e.g.,https://your-nocodb-instance.com/)
OAuth Scopes Requested
The integration will request these Bitbucket scopes:
repositoryrepository:writepullrequestpullrequest:writeissueissue:writeaccount
These permissions allow NocoDB to read/write repositories, issues, and pull requests as needed.