Tutorial: Azure Active Directory single sign-on (SSO) integration with EasySSO for BitBucket
In this tutorial, you'll learn how to integrate EasySSO for BitBucket with Azure Active Directory (Azure AD). When you integrate EasySSO for BitBucket with Azure AD, you can:
- Control in Azure AD who has access to EasySSO for BitBucket.
- Enable your users to be automatically signed-in to EasySSO for BitBucket with their Azure AD accounts.
- Manage your accounts in one central location: the Azure portal.
To get started, you need the following:
- An Azure AD subscription. If you don't have a subscription, you can get a free account.
- A subscription to EasySSO for BitBucket that's enabled for single sign-on (SSO).
In this tutorial, you configure and test Azure AD SSO in a test environment.
- EasySSO for BitBucket supports SP-initiated and IdP-initiated SSO.
- EasySSO for BitBucket supports "just-in-time" user provisioning.
Add EasySSO for BitBucket from the gallery
To configure the integration of EasySSO for BitBucket into Azure AD, you need to add EasySSO for BitBucket from the gallery to your list of managed SaaS apps.
- Sign in to the Azure portal by using either a work or school account, or a personal Microsoft account.
- On the left navigation pane, select the Azure Active Directory service.
- Go to Enterprise Applications, and then select All Applications.
- To add a new application, select New application.
- In the Add from the gallery section, type EasySSO for BitBucket in the search box.
- Select EasySSO for BitBucket from the results, and then add the app. Wait a few seconds while the app is added to your tenant.
Alternatively, you can also use the Enterprise App Configuration Wizard. In this wizard, you can add an application to your tenant, add users/groups to the app, assign roles, as well as walk through the SSO configuration as well. Learn more about Microsoft 365 wizards.
Configure and test Azure AD SSO for EasySSO for BitBucket
Configure and test Azure AD SSO with EasySSO for BitBucket by using a test user called B.Simon. For SSO to work, you need to establish a linked relationship between an Azure AD user and the related user in EasySSO for BitBucket.
To configure and test Azure AD SSO with EasySSO for BitBucket, perform the following steps:
- Configure Azure AD SSO to enable your users to use this feature.
- Configure EasySSO for BitBucket SSO to configure the single sign-on settings on the application side.
- Create an EasySSO for BitBucket test user to have a counterpart of B.Simon in EasySSO for BitBucket, linked to the Azure AD representation of user.
- Test SSO to verify whether the configuration works.
Configure Azure AD SSO
Follow these steps to enable Azure AD SSO in the Azure portal.
In the Azure portal, on the EasySSO for BitBucket application integration page, find the Manage section. Select single sign-on.
On the Select a single sign-on method page, select SAML.
On the Set up single sign-on with SAML page, select the pencil icon for Basic SAML Configuration to edit the settings.
In the Basic SAML Configuration section, if you want to configure the application in IdP initiated mode, enter the values for the following fields:
a. In the Identifier text box, type a URL that uses the following pattern:
b. In the Reply URL text box, type a URL that uses the following pattern:
Select Set additional URLs, and do the following step if you want to configure the application in SP initiated mode:
- In the Sign-on URL text box, type a URL that uses the following pattern:
These values aren't real. Update these values with the actual Identifier, Reply URL and Sign-on URL. Contact the EasySSO support team to get these values if in doubt. You can also refer to the patterns shown in the Basic SAML Configuration section in the Azure portal.
- In the Sign-on URL text box, type a URL that uses the following pattern:
The EasySSO for BitBucket application expects the SAML assertions in a specific format, which requires you to add custom attribute mappings to your SAML token attributes configuration. The following screenshot shows the list of default attributes.
The EasySSO for BitBucket application also expects a few more attributes to be passed back in the SAML response. The following table shows these. These attributes are also pre-populated, but you can review them per your requirements.
Name Source attribute urn:oid:0.9.2342.19200300.100.1.1 user.userprincipalname urn:oid:0.9.2342.19200300.100.1.3 user.mail urn:oid:2.16.840.1.1137188.8.131.52 user.displayname urn:oid:184.108.40.206 user.surname urn:oid:220.127.116.11 user.givenname
If your Azure AD users have sAMAccountName configured, you have to map urn:oid:0.9.2342.19200300.100.1.1 onto the sAMAccountName attribute.
On the Set up single sign-on with SAML page, in the SAML Signing Certificate section, select the download links for the Certificate (Base64) or Federation Metadata XML options. Save either or both to your computer. You will need it later to configure BitBucket EasySSO.
If you plan to configure EasySSO for BitBucket manually with a certificate, you also need to copy Login URL and Azure AD Identifier, and save those on your computer.
Create an Azure AD test user
In this section, you'll create a test user, B.Simon, in the Azure portal.
- From the left pane in the Azure portal, select Azure Active Directory > Users > All users.
- Select New user at the top of the screen.
- In the User properties, follow these steps:
- For Name, enter
- For User name, enter the firstname.lastname@example.org. For example,
- Select the Show password check box, and then write down the password.
- Select Create.
- For Name, enter
Assign the Azure AD test user
In this section, you'll enable B.Simon to use Azure single sign-on by granting access to EasySSO for BitBucket.
- In the Azure portal, select Enterprise Applications > All applications.
- In the applications list, select EasySSO for BitBucket.
- In the app's overview page, find the Manage section, and select Users and groups.
- Select Add user. In the Add Assignment dialog box, select Users and groups.
- In the Users and groups dialog box, select B.Simon from the Users list, and then choose Select at the bottom of the screen.
- If you are expecting a role to be assigned to the users, you can select it from the Select a role dropdown. If no role has been set up for this app, you see "Default Access" role selected.
- In the Add Assignment dialog box, select Assign.
Configure EasySSO for BitBucket SSO
To automate the configuration within Zoom, you need to install My Apps Secure Sign-in browser extension by clicking Install the extension.
After adding extension to the browser, click on Set up Zoom will direct you to the Zoom application. From there, provide the admin credentials to sign into Zoom. The browser extension will automatically configure the application for you and automate steps 3-10.
If you want to setup Zoom manually, in a different web browser window, sign in to your Zoom company site as an administrator.
Go to the Administration section.
Locate and select EasySSO.
Select SAML. This takes you to the SAML configuration section.
Select the Certificates tab, and you're presented with the following screen:
Locate the Certificate (Base64) or Metadata File that you saved in the preceding section of this tutorial. You can proceed in one of the following ways:
Use the App Federation Metadata File you downloaded to a local file on your computer. Select the Upload radio button, and follow the path specific to your operating system.
Open the App Federation Metadata File to see the content of the file, in any plain-text editor. Copy it onto the clipboard. Select Input, and paste the clipboard content into the text field.
Do a fully manual configuration. Open the App Federation Certificate (Base64) to see the content of the file, in any plain-text editor. Copy it onto the clipboard, and paste it into the IdP Token Signing Certificates text field. Then go to the General tab, and fill the POST Binding URL and Entity ID fields with the respective values for Login URL and Azure AD Identifier that you saved previously.
Select Save on the bottom of the page. You'll see that the content of the metadata or certificate files is parsed into the configuration fields. EasySSO for BitBucket configuration is complete.
To test the configuration, go to the Look & Feel tab, and select SAML Login Button. This enables a separate button on the BitBucket sign-in screen, specifically to test your Azure AD SAML integration end-to-end. You can leave this button on, and configure its placement, color, and translation for production mode, too.
If you have any problems, contact the EasySSO support team.
Create an EasySSO for BitBucket test user
In this section, you create a user called Britta Simon in BitBucket. EasySSO for BitBucket supports just-in-time user provisioning, which is disabled by default. To enable it, you have to explicitly check Create user on successful login in the General section of EasySSO plug-in configuration. If a user doesn't already exist in BitBucket, a new one is created after authentication.
However, if you don't want to enable automatic user provisioning when the user first signs in, users must exist in user directories that the instance of BitBucket makes use of. For example, this directory might be LDAP or Atlassian Crowd.
In this section, you test your Azure AD single sign-on configuration with following options.
Click on Test this application in Azure portal. This will redirect to EasySSO for BitBucket Sign on URL where you can initiate the login flow.
Go to EasySSO for BitBucket Sign-on URL directly and initiate the login flow from there.
- Click on Test this application in Azure portal and you should be automatically signed in to the EasySSO for BitBucket for which you set up the SSO
You can also use Microsoft My Apps to test the application in any mode. When you click the EasySSO for BitBucket tile in the My Apps, if configured in SP mode you would be redirected to the application sign on page for initiating the login flow and if configured in IDP mode, you should be automatically signed in to the EasySSO for BitBucket for which you set up the SSO. For more information about the My Apps, see Introduction to the My Apps.
Once you configure EasySSO for BitBucket, you can enforce session control, which protects exfiltration and infiltration of your organization’s sensitive data in real time. Session control extends from conditional access. Learn how to enforce session control with Microsoft Defender for Cloud Apps.