SSO Connector for Bitbucket and Crowd


The miniOrange Crowd SSO connector expands the SAML SSO functionality from Crowd to its connected Atlassian applications.The Bitbucket Crowd SSO Connector allows users to enable SAML Authentication from any SAML compliant Identity Provider(IDP), where SAML SSO requests and responses to and from IDP will pass via the Crowd server. The IDP will perform user authentication while user permissions can still be controlled using Crowd.

You can refer the steps to configure Crowd connector from the video or documentation given below

Download And Installation



  • Log into your Bitbucket instance as an admin.
  • Navigate to the settings menu and Click Manage Apps.
  • Click Find new apps or Find new add-ons from the left-hand side of the page.
  • Locate SSO connector for Crowd and Bitbucket via search.
  • Click Try free to begin a new trial or Buy now to purchase a license of SSO connector for Crowd and Bitbucket.
  • Enter your information and click Generate license when redirected to MyAtlassian.
  • Click Apply license.
  •  SAML Single Sign On (SSO) Connector for Crowd and Bitbucket, Install Bitbucket Add-On through manage apps menu

Plugin Configuration



  • To configure the plugin, firstly configure Crowd SAML Single Sign-On (SSO) plugin for your Identity Provider as mentioned in the steps.
  • Now, Enable Crowd SSO for your Bitbucket instance.
  • You can find the steps to integrate your Crowd server with your Bitbucket instance here.

    Single sign-on (SSO) with Crowd

    Once the Crowd directory has been set up, you can enable Crowd SSO integration by adding the following setting to shared/bitbucket.properties in the home directory (create this file if it doesn't exist yet):

    BITBUCKET.PROPERTIES
    # Whether SSO support should be enabled or not. Regardless of this setting SSO authentication 
    # will only be activated when a Crowd directory is configured in Bitbucket that is configured 
    # for SSO.
    plugin.auth-crowd.sso.enabled=true

    Please note that you will need to correctly set up the domains of the applications involved in SSO.

  • Go to SSO Configuration tab of Bitbucket-Crowd Connector plugin.
  • Enter Crowd Base URL and click on Save.
  • SAML Single Sign On (SSO) Connector for Crowd and Bitbucket, Crowd Base URL
  • Now, all the IdPs are listed that you have configured with SAML SSO Crowd plugin.
  • The Enable SSO button is provided for every individual IdP. You can enable SSO for specific IdPs with the help of the buttons.
  • SAML Single Sign On (SSO) Connector for Crowd and Bitbucket, Identity Providers

SSO Redirection



  • If you have only one IDP configured, then you can use the features provided on the SSO Redirection tab and Redirection Rules tab of the plugin to manage the redirection on the login page.
  • Enable the Auto Redirect to IDP option on the SSO Redirection tab if you want to allow users to log in only using IDP.
  • Use the Emergency/Backdoor Login URL to allow all admins to access the Bitbucket default login page and log in using Crowd credentials.
  • Use the settings given on Redirection Rules tab to redirect the users on login page based on their email domains, groups and directories. This feature is more useful in case you have multiple IDPs configured. Please refer to the next section.
  • SAML Single Sign On (SSO) Connector for Crowd and Bitbucket, SSO Redirection

Managing SSO with multiple IDPs



  • If you have multiple IDPs configured, you can choose how you want your end users to use these IDPs to perform SSO.
  • For example you can show the buttons for the different IDPs configured on the login page nad let the users decide which IDP to use for SSO.
  • Or you could force certain users to use a specific IDP based on the domain of their username/email.
  • You will be able to configure these rules in the Redirection Rules section, under the Redirection Rules tab.
  • By default one rule is always configured that will be applicable to all the users, irrespective of their user domains.
  • For instance, if you want to display the login page with SSO buttons for each of the IDPs then your Default Rule will be as follows :
  • SAML Single Sign On (SSO) into Bitbucket, default redirection rule
  • Based on the default rule mentioned above, the login form will contain buttons for each IDP. The users will be free to choose whichever IDP they want to use to initiate SSO.
  • SAML Single Sign On (SSO) into Bitbucket, default redirection rule login page
  • You can also configure a rule so that your users will automatically be redirected to an IDP based on their email domains.
  • For example, if you want users with example.com as domain to be redirected to IDP 1 you can add a rule by :

    1. Click on the Add Rule button in the Redirection Rules tab.
    2. Enter a name for your rule in Rule Name.
    3. In the IF statement select Email Domain in the first drop-down.
    4. For the same statement select equals in the second drop-down.
    5. In the last field of the IF statement, enter the email domain(example.com for the purpose of this example).
    6. In the Then Redirect To drop-down, select the IDP you want the users with example.com to be redirected to(IDP 1 in this case).
    7. Click on Save.
    8. SAML Single Sign On (SSO) into Bitbucket, example rule
  • When a rule such as an example given above is configured, a login form will be displayed to the users where they will have to input their email address.
  • SAML Single Sign On (SSO) into Bitbucket, Domain mapping form

Customize your login page



  • Go to the Look and Feel tab of the plugin.
  • Here, you can design your own login template that will be used to initiate SSO. This will display your customized login page instead of application's default login page.
  • SAML Single Sign On (SSO) into Bitbucket, custom login template

Crowd Troubleshooting

If you encounter any difficulties while setting up miniOrange Crowd add-ons, please refer to this Crowd troubleshooting page for assistance.

Recommended Add-Ons




Free Trial

If you don't find what you are looking for, please contact us at support-atlassian@miniorange.atlassian.net or raise a support ticket here.