Connecting Bitbucket Enterprise
Written by Nikhil Kukade
Updated over a week ago


Create application link in Bitbucket Server - This app-link needs to be configured at an admin level in Bitbucket which should scope all the repositories that need to be integrated.

To create an Incoming Application Link:

  1. Go to Administration > Applications > Application links.

  2. Select Create link.

  3. Select External application, and then choose Incoming as the direction.

  4. Provide RedirectUrl :

  5. Permissions : Application Repositories - Read

OAuth Credentials:

After providing the Redirect URL and selecting the scopes, Bitbucket will generate the OAuth credentials. Refer to below sample screenshot.

Copy client Id and secret generated after application link is created as this will be required while connecting with Privado.

Connecting Bitbucket Enterprise with Privado:

After signing up, you will be redirected to the onboarding page. As part of onboarding, you will be prompted to connect Privado with your source code management tool for scanning the repositories.

NOTE : It is required that you have Bitbucket admin access while connecting Privado. If you do not have admin access you can add a team member with Bitbucket admin access by clicking on "Invite a Team member" and continue with below steps.

  1. Select Bitbucket Enterprise by clicking on Setup

2. You will be redirected to Bitbucket and prompted to enter the following values.

  1. Host : Typically its is the format "https://bitbucket.<>

  2. Bitbucket Client ID : Refer to point 3 under pre requisites section for the Client ID

  3. Bitbucket Client Secret : Refer to point 3 under pre requisites section for the Client Secret

3. Upon successful login, Bitbucket will prompt you to Authorise the Privado app. These permissions allow us to scan the code repositories. Please select Grant access

(Note : Privado requires read only permissions to connect with Bitbucket. Privado does not copy or store any code that it discovers)

Upon successful connection Privado will fetch the repositories. The next step in onboarding is to follow the steps mentioned in Selecting Repositories

Did this answer your question?