Search Results :


BitBucket SAML Single Sign-On SSO Login using Drupal as IDP

BitBucket SAML Single Sign-On SSO Login using Drupal as IDP

This document explains how to configure Drupal as an Identity Provider (IdP) for the Bitbucket application using the miniOrange SAML IDP module. This will allow users to log in and access Bitbucket using Drupal credentials. The module is compatible with Drupal 7, Drupal 8, Drupal 9, and Drupal 10.

Installation Steps 

  • Download the module:
    composer require 'drupal/miniorange_saml_idp'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange SAML Identity Provider using the search box.
  • Enable the module by checking the checkbox and click on install button.
  • Configure the module at
  • Install the module:
    drush en miniorange_saml_idp
  • Clear the cache:
     drush cr
  • Configure the module at
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the Drupal SAML IDP 2.0 Single Sign On (SSO) - SAML Identity Provider module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • Configure the module at

Obtain SAML IDP Metadata from Drupal:

  • Once the module is installed, navigate to the Configuration tab from the top navigation bar and click on the miniOrange SAML IDP Configuration.
  • Configuration-Drupal-Click-on-miniOrange-SAML-IDP-Configuration
  • Navigate to the IDP Metadata tab and download the metadata file. (This is required in order to configure the Bitbucket as a SAML SP)
  • Drupal-Single-Sign-On-Click-on-Download-Metadata-button

Set up SAML SSO Application in Bitbucket:

  • Log in to your Bitbucket site as an administrator.
  • From the top navigation bar open your profile menu and select Atlassian Marketplace.
  • Bitbucket-Drupal-SAML-IdP-Select-Atlassian-Market-Place
  • Search for the mO Bitbucket SAML SSO and click the Free trial button to install the application.
  • Bitbucket-Drupal-SAML-IdP-Search-mo-Bitbucket-SAML-SSO-Select-Free-Trail
  • After successful installation, open the configurations of the application from the left navigation panel (Administration → ADD-ONS → miniOrange Single Sign-On)
  • Navigate to the SAML tab and select the Configured IDPs option.
  • Click on the Add New IDP button
  • /Bitbucket-Drupal-SAML-IdP-Select-Add-New-IdP
  • Select the Quick Setup option
  • Bitbucket-Drupal-SAML-IdP-Select-Quick-Setup
  • Select the Custom IDP.
  • Bitbucket-Drupal-SAML-IdP-Select-Custom-IdP
  • On the Service Provider Metadata section, select the By providing a metadata URL/File to the IDP option from the dropdown. Download the metadata (This will require further configuring Drupal as IdP) and click on the Proceed button.
  • Bitbucket-Drupal-SAML-IdP-Download-IdP-Metadata
  • After proceeding, the section to Configure your Identity Provider appears. Select the option as follows:
    • Would you like to customize the name of your IDP? → Yes
    • Custom IDP Name → Drupal (This can be any relevant name)
    • You need to configure your IDP's metadata on Bitbucket. How would you like to add this metadata? → I have a file which contains the metadata
    • Then upload the metadata file of Drupal downloaded in the earlier steps. Scroll down to the button and click on the Save button.
  • Bitbucket-Drupal-SAML-IdP-Configure-IdP
  • Click the Proceed button when the setting has been successfully saved.
  • Keep the default settings for the User Profile and User Groups section and click the Save and Proceed button.
  • In the Troubleshooting section click on the Finish Quick Setup button to complete the setup.
  • Bitbucket-Drupal-SAML-IdP-Clik-Finish-Quick-Step

Configuring Drupal as SAML Identity Provider (IdP):

  • Go to the Drupal site. Navigate to the Service Provider Setup tab of the miniOrange SAML IDP module.
  • Click on the Upload SP Metadata.
  • Drupal-SAML-IDP-Select-Upload-Metadata
  • Upload the metadata file downloaded from the Bitbucket.
  • Drupal-SAML-IDP-Upload-Metadata
  • Now click on the Test link to verify your configuration. If your configurations are correct then you will get the homepage of the Bitbucket site in the test configuration window.
  • Drupal-SAML-IDP-Select-Test-Configure

You have successfully configured the SAML SSO between Bitbucket as SAML SP and Drupal as SAML IDP.

Additional Features:

Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request using Request 7-day trial button of the module or reach out to us at for one-on-one assistance from Drupal expert.

 Case Studies
miniOrange has successfully catered to the use cases of 400+ trusted customers with its highly flexible/customizable Drupal solutions. Feel free to check out some of our unique case studies using this link.
 Other Solutions
Feel free to explore other Drupal solutions that we offer here. The popular solutions used by our trusted customers include 2FA, User Provisioning, Website Security. 
  24*7 Active Support
The Drupal developers at miniOrange offer quick and active support for your queries. We can assist you from choosing the best solution for your use case to deploying and maintaining the solution.
Hello there!

Need Help? We are right here!

Contact miniOrange Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to