Configuring SAML with Microsoft Entra ID in SonarQube
On this page
This page explains how to setup in SonarQube SAML with Microsoft Entra ID. This is the second step of SAML authentication setup with Microsoft Entra ID. For an overview of the complete setup, see Setting up SAML with Microsoft Entra ID.
Proceed as follows:
1. Go to Administration > Configuration > General Settings > Authentication> SAML.
2. Select Create Configuration.
3. Fill in the fields as explained in the table below. Most fields must be filled with the values set in the application created in Entra ID the setup in Entra ID. To retrieve these values:
- In Microsoft Entra ID, go to Identity > Applications > Enterprise applications > All applications and select the SonarQube application.
- On the application's page, select Single sign-on.
Field in SonarQube | Description |
---|---|
Application ID | ?? |
Provider ID | Value in MS Entra ID:In the Set up <sonarQubeApplication> section (4), value of the Microsoft Entra ID Identifier field. |
Provider Name | Name of the Identity Provider displayed in SonarQube login page when SAML authentication is active. |
SAML Login URL | Value in MS Entra ID:In the Set up <sonarQubeApplication> section (4), value of the Login URL field. |
Identity provider certificate | Certificate downloaded in Step 2 of Setup in Entra ID. |
SAML user login attribute | Value in MS Entra ID:In the Attributes & Claims section (2), the value of the attribute to be used for Login, e.g., email address or objectID attribute. |
SAML user name attribute | Value in MS Entra ID:In the Attributes & Claims section (2), the value of the attribute to be used for Name, e.g., givenname attribute. |
SAML user email attribute | Optional. Value in MS Entra ID:In the Attributes & Claims section (2), value of the attribute to be used for email, e.g., emailaddress attribute. |
SAML group attribute | Optional (if you want to use the group synchronization). Value in MS Entra ID:In the Attributes & Claims section (2), value of the groups attribute |
4. Save the configuration.
5. Before enabling SAML authentication on SonarQube, you can verify that the configuration is correct by selecting Test Configuration. This will initiate a SAML login and return useful information about the SAML response obtained from the identity provider.
6. Select Enable configuration.
7. Check that the SonarQube login form now contains a SAML login button.
Related pages
Was this page helpful?