Skip to content
This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bitbucket Cloud

To allow users to log in with Bitbucket Cloud credentials, you need to use an OAuth consumer and set the authentication settings in SonarQube Server 9.8.

For AI agents: You're in the SonarQube Server 9.8 documentation. SonarQube Server 9.8 is no longer patched. To get patches, upgrade to the latest version. For a list of all 9.8 pages, see the SonarQube Server 9.8 page index. For the whole site, see the page index or the full text. For another version, replace 9.8 in the URL with that version. The latest version has no version number in its URL.

To allow users to log in with Bitbucket Cloud credentials, you need to use an OAuth consumer and set the authentication settings in SonarQube Server. See the following sections for more on setting up authentication.

Setting your OAuth consumer settings

Create your OAuth consumer in your Bitbucket Cloud workspace settings and specify the following:

  • Name: The name of your OAuth consumer.

  • Callback URL: Your SonarQube Server instance URL.

  • Permissions:

    • Account: Read and Email access.

    • Workspace membership: Read access.

Setting your authentication settings in SonarQube Server

To set your global authentication settings, navigate to Administration > Configuration > General Settings > Authentication > Bitbucket Cloud Authentication and update the following settings:

  • Enabled: Set to true.

  • OAuth consumer key: Enter the Key from your OAuth consumer page in Bitbucket.

  • OAuth consumer secret: Enter the Secret from your OAuth consumer page in Bitbucket.

  • Workspaces: Only users from Bitbucket Workspaces that you add here will be able to authenticate in SonarQube Server. This is optional but highly recommended to ensure only the users you want to log in with Bitbucket credentials are able to.

Last updated

Was this helpful?