Connect to Bitbucket Cloud (Bitbucket.org) ☁️
Public projects
No configuration needed.
Private projects
By default no configuration is required. Each user will have to authenticate with OAuth to Bitbucket to access the content. Therefore, each Confluence user also needs a Bitbucket account to see the private projects.
Shared Authentication
Alternatively, shared authentication can be used. All Confluence users will share the same authentication to Bitbucket and therefore won’t need a Bitbucket account. Confluence users will see all content the authentication token has access to.
Using a Token
On Bitbucket Cloud, navigate to the workspace or repository where you want to create a token
Navigate to the workspace or repository settings → Access Tokens
Create a token. It should have these permissions:
Repository: Read
Pull requests: Read
In Confluence, navigate to the Settings → Include Bitbucket
Switch the authentication method and save the token:
Using App Password
On Bitbucket Cloud, log in with the account which will be used to access private repositories
Navigate to Settings (Gear Icon) → Personal Bitbucket settings → App passwords
Create a App Password with these permissions:
Repositories: Read
Pull requests: Read
Issues: Read
In Confluence, navigate to the Settings → Include Bitbucket
Switch the authentication method.
Enter the user name
Enter the create App Password
Save the settings