Single Sign-On with Okta
Step 1: Open the Single Sign-On Settings
- In the CloudQuery Platform sidebar, click on your user profile, then select Organization settings.
- Under Organization, in the Users & access group, click Single sign-on.
- The values that CloudQuery gives to your identity provider use the domain you host CloudQuery Platform on, such as
https://cloudquery.example.com.
- The values that CloudQuery gives to your identity provider use the domain you host CloudQuery Platform on, such as
The CloudQuery Platform single sign-on settings page
Step 2: Create a SAML Application in Okta
- In a new tab, log in to your Okta Admin Console.
- Navigate to Applications → Applications.
- Click Create App Integration.
- Select SAML 2.0 as the sign-in method and click Next.
Creating a new SAML 2.0 application
Step 3: Configure SAML Settings
In the General Settings section, enter CloudQuery as the App name, upload a logo (optionally) and click Next.
CloudQuery application details
Under SAML Settings, enter the following:
Copy both URLs from Map information in Identity Provider on the CloudQuery single sign-on settings page:
- Single sign-on URL (ACS URL): the Single sign-on URL value.
- Audience URI (Entity ID): the Audience URI (SP Entity ID) value.
- Name ID Format: Select
EmailAddress.
SAML settings with values coming from CloudQuery SSO page
Scroll down to Attribute Statements and add the following:
first_name→user.firstNamelast_name→user.lastName- email →
user.email
Mapping CloudQuery attributes with Okta attributes
Then, click on Next.
Step 4: Assign Users and Groups
- In the Assignments section, select Skip group assignment for now or assign users as needed.
- Click Finish.
- Navigate to the Assignments tab of the CloudQuery application in Okta.
- Click Assign → Assign to People or Assign to Groups and select users or groups.
Step 5: Configure Metadata and Sign-Out URL
In the newly created application, go to the Sign On tab.
Then, under Settings, find the Identity Provider metadata link and copy the Metadata URL.
Metadata URL and Sign out URL values to be copied
On the CloudQuery single sign-on settings page, under Map information from Identity Provider, select URL and paste the metadata URL into the URL field instead of uploading a metadata file. Then, locate the Sign-Out URL in Okta and copy it.
Paste the Sign-Out URL into the Logout URL field to ensure proper logout functionality.
The metadata URL and logout URL entered in CloudQuery
Step 6: Enable and Test SSO
- On the CloudQuery single sign-on settings page, turn on Enable single sign-on in the Single sign-on status card at the top of the page.
- The switch is part of the form, so nothing is stored until you submit it. The button at the bottom of the page now reads Save and enable. Click it to save the configuration and turn single sign-on on.
- In the Okta Admin Console, click Sign On → Test Sign In.
- If everything is configured correctly, you can log into CloudQuery Platform with your Okta credentials.
Next Steps
- Map Groups to Roles - Map Okta groups to platform roles
- Certificate Rollover - Manage certificate updates
- User Management - Manage users and roles
Last updated on