Skip to main content
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.
You need admin access to the Bitbucket workspace to create an OAuth consumer.

Create the Bitbucket OAuth consumer

1

Open OAuth consumers

In Bitbucket, go to Workspace settings → OAuth consumers and click Add consumer.
2

Fill in the details

Replace <dns-host> with the DNS host of your on-prem Garth deployment — for example https://app.heygarth.ai/api/garth-assist/oauth/bitbucket/callback.
3

Select permissions

Grant the following permissions:
4

Save the consumer

Click Save. Expand the consumer to view its Key and Secret.
Store the Secret securely — treat it like a password.

Environment variables

Record the following values for your on-prem deployment: