This page covers on-prem (self-hosted) setup. You create your own Bitbucket
OAuth consumer so authentication runs against your workspace. For the hosted
SaaS integration, see Setup → Bitbucket.
Create the Bitbucket OAuth consumer
Open OAuth consumers
In Bitbucket, go to Workspace settings → OAuth consumers and click
Add consumer.
Fill in the details
| Field | Value |
|---|---|
| Name | Garth Assist |
| Callback URL | https://<dns-host>/api/garth-assist/oauth/bitbucket/callback |
Select permissions
Grant the following permissions:
| Permission | Access |
|---|---|
| Account | Read |
| Workspace membership | Read, Write |
| Projects | Read, Write |
| Repositories | Read, Write, Admin |
| Pull requests | Read, Write |
| Issues | Read |
| Pipelines | Read |
| Runners | Read |
Environment variables
Record the following values for your on-prem deployment:| Environment variable | Value |
|---|---|
BITBUCKET_CLIENT_ID | The consumer Key |
BITBUCKET_CLIENT_SECRET | The consumer Secret |

