Bitbucket as OAuth Client and Drupal as OAuth Server

Bitbucket as OAuth Client and Drupal as OAuth Server


Drupal Bitbucket SSO Integration will allow you to configure Single Sign-On ( SSO ) login between your Drupal site and Bitbucket. Bitbucket SSO integration with your Drupal site will help your users to login into Bitbucket using their Drupal credentials.

This SSO setup will also help you to manage your users in one single place. The Drupal OAuth Server module is compatible with Drupal 7, Drupal 8 as well as Drupal 9. Here we will go through a step-by-step guide to configure OAuth Server SSO login between Bitbucket as OAuth Client and Drupal as OAuth Server.

If you have any doubts or queries, you can contact us at drupalsupport@xecurify.com. We will help you to configure the module. If you want, we can also schedule an online meeting to help you configure the Drupal OAuth 2.0 Server ( OAuth / OIDC Provider ) Single Sign-On ( SSO ) module



Pre-requisite: Download and Installation 


  • For Window:
    composer require drupal/oauth_server_sso
  • For Linux:
    composer require 'drupal/oauth_server_sso'
  • Go to Extend menu on your Drupal admin console and enable the module by checking the checkbox and click on Install button.
  • Configure the module at
    {BaseURL}/admin/config/people/oauth_server_sso/config_client
  • Download the module:
    drush dl oauth_server_sso
  • Install the module:
    drush en oauth_server_sso
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/oauth_server_sso/config_client
  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the Drupal OAuth Server - (OAuth/OIDC Provider Single Sign-On) Login 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
    {BaseURL}/admin/config/people/oauth_server_sso/config_client

1. Setup Bitbucket as OAuth Client

  • Download Bitbucket Server
  • Login into your Bitbucket site’s administrator console.
  • drupal oauth server Bitbucket login page
  • From right toggle menu, click on Settings icon.
  • drupal oauth server Bitbucket settings
  • Click on Find new apps under the Add-ons section.
  • drupal oauth server Bitbucket find new apps
  • Search miniOrange OAuth Client under the Search box and click on free trial button for installing the application.
  • drupal oauth server Bitbucket install apps
  • After successful installation, go to the Configure OAuth tab. Now configure your OAuth Provider using the Callback URL provided in this tab.

    drupal oauth server Bitbucket callback url

2. Configure Drupal as OAuth Server

  • Click on Configuration from the top navigation bar and Select Drupal OAuth Server Configuration.
  • Drupal OAuth Server - Configure module
  • Enter the Client Name and Authorized Redirect / Callback URL (copied in step 1) from the Bitbucket OAuth client plugin.
  • Drupal OAuth Server - Configure module
  • After that, click the Next button to find the Client ID, Client Secret, Scope, and Enpoints to complete your Joomla OAuth Client configuration.
  • Drupal OAuth Server - Client ID Client Secret

3. Configure Client ID, Client Secret and Endpoints in Bitbucket

  • Copy Client ID, Client Secret, Authorization Endpoint, Access Token Endpoint, and Get User Info Endpoint from the OAuth Client tab of the Drupal OAuth Server.
  • Drupal OAuth Server - Configure module
  • Paste copied Client ID, Client Secret, Authorize Endpoint, Access Token Endpoint, Get User Info Endpoint and Scopes fields and click on the Save button.
  • drupal oauth server Bitbucket save configuration" alt="drupal oauth server Confluence save configuration" class="imgStyle imgResize" width="80%">

4. Test Configuration of Bitbucket

  • After successfully configuring OAuth Provider, go to Configure OAuth tab.
  • Click on the Test Configuration button.
  • drupal oauth server Bitbucket Test configuration
  • You have successfully configured your Bitbucket 2 as an OAuth Client.
  • drupal oauth server Bitbucket Test configuration

24*7 Active Support

If you face any issues or if you have any questions, please feel free to reach out to us at drupalsupport@xecurify.com. In case you want some additional features to be included in the module, please get in touch with us, and we can get that custom-made for you. Also, If you want, we can also schedule an online meeting to help you configure the Drupal OAuth 2.0 Server Single Sign-On (OAuth/OIDC) module or call us at +1 978 658 9387.

Free Trial

If you would like to test out the module to ensure your business use case is fulfilled, we do provide a 7-day trial. Please drop us an email at drupalsupport@xecurify.com requesting a trial. You can create an account with us using this link.

Additional Resources

Our Other modules

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com