Using Okta Express Configuration
With the Okta Express Configuration, you can set up OpenID Connect (OIDC) Single Sign-On (SSO) in your SonarQube Cloud enterprise with just a few clicks.
This feature requires the SonarQube Cloud's Enterprise licence.
Before starting, read Before setting up SSO and provisioning.
If you don't intend to use SCIM provisioning, you must first create manually the user groups in your SonarQube Cloud organizations or verify your existing groups as described in Managing groups in SonarQube Cloud if using JIT provisioning.
You must be an admin of your SonarQube Cloud enterprise and Okta administrator within your Okta tenant.
Supported OIDC features
With the Okta Express Configuration, you benefit from:
SP-initiated SSO
IdP-initiated SSO (through Okta dashboard)
Just-In-Time provisioning
The Universal Logout is not supported by the SonarQube Cloud app in Okta. However, SonarQube Cloud will disconnect your session as follows:
The session closes after 24 hours, if the user is active.
The session closes after 8 hours, if the user is idle.
SCIM provisioning is set up through an additional condiguration step using SonarQube Cloud assistant.
Step 1: Add the SonarQube Cloud integration in Okta
In the Okta Admin Console, go to Applications > Applications.
Select Browse App Catalog.
Search for SonarQube and select SonarQube Cloud.
Select Add Integration.
On the General Settings page, enter a label for the integration, for example, SonarQube Cloud.
Select Done.
Step 2: Configure SSO and Universal Logout
In Okta, go to the Sign On tab of your SonarQube Cloud integration and select Express Configure SSO & UL.

You are prompted for your Sonar Express Configuration ID.

Enter your Sonar Express Configuration ID, in the following format
org-<enterprise-uuid>. You can retrieve the ID from SonarQube Cloud:In SonarQube Cloud, retrieve your enterprise.
Go to Administration > SSO & Provisioning. The SSO & Provisioning page opens.
Expand the Single sign-on & Domain configuration section and select Okta Express Configuration.
Copy the Sonar Express Configuration ID and paste it into the Sonar Express Configuration ID window. Select Continue.

SonarQube Cloud authentication page opens with options to login. Make sure you login using the DevOps platform that is linked to your SonarQube Cloud enterprise admin account.
Authorize the app as a SonarQube Cloud enterprise administrator. This creates a SSO connection in your SonarQube Cloud enterprise.

Review the permissions requested and select Accept to authorize the connection. Once authorization is complete, you are redirected back to Okta. The SSO and Universal Logout configuration is applied automatically. See the Using Okta Express Configuration section for more information.
Step 3: Add the groups attribute mapping
Regardless of your chosen provisioning method, you must configure the groups attribute in the OIDC payload. If you use SCIM provisioning, ensuring this value aligns with the data SCIM transmits to SonarQube Cloud is essential. See Group setup is mandatory for more details.
Proceed as follows:
In Okta, go to the Sign On tab of your SonarQube Cloud integration.
In Settings > Sign on methods, select the link Configure profile mapping.

Close the dialog to open the Profile Editor page.
Select the Add Attribute button. The Add Attribute dialog opens.
In the dialog, set the following parameters:
Data type: Select string array
Display name: Enter Groups
Variable name: Enter userGroups
Enum: not selected
Attribute required: Select Yes
Attribute type: Select Group
Group Priority: Select Use Group Priority
Select Save. The group's attribute is added.
Select the Mappings button. The User Profile Mappings dialog opens.
Select the tab Okta User to <SonarQube Cloud integration>.
Enter the following expression:
With this expression, all your groups in Okta will be included (and available during Just-in-Time provisioning login for automatic group synchronization). You can adjust this expression if necessary.
To preview the attribute for your application enter the Okta user name in the preview textbox. The preview shows groups that the user belongs to in Okta.

Click Exit Preview.
Select Save Mappings and then Apply updates.
Step 4: Assign users and groups
In Okta, go to the Assignments tab of your SonarQube Cloud integration.
Select Assign > Assign to People or Assign to Groups.
Select the users or groups you want to give access to SonarQube Cloud and select Assign.
Select Done.
Step 5: Verify the setup
Verify Okta dashboard SSO
As the assigned test user, sign into the Okta dashboard.
Select the SonarQube Cloud app tile. The name of the app is what you have configured for its label in Using Okta Express Configuration.
Verify that you are signed in to SonarQube Cloud without being prompted for additional credentials.
Verify SSO through SonarQube Cloud's login page
Navigate to your SonarQube Cloud login page.
Select the SSO option.
Enter the enterprise key.
Verify that you are redirected to Okta for authentication and then signed into SonarQube Cloud.
Next steps
To set up SCIM, go to Set up SCIM.
To terminate your SSO setup, go to Invite users to sign in .
It's recommended to verify your company's email domain to avoid one-time email verification during SSO login. See Domain verification
Related pages
Related online learning
Last updated
Was this helpful?

