SSO (Single Sign-On)

In the Teams section, it is now possible to configure an AI assistant with SSO (Single Sign-On).

Once enabled, only authorized employees can use the assistant, and there is no need to sign in to multiple platforms.

1. SSO - Configuration

1

Prerequisites

2

Configure SSO

  1. Navigate to Workspace > Teams.

  2. Select the desired team from the list.

  3. Click the Configure SSO button.

  1. Then, click Fetch URI and copy the Redirect URI. You must paste this URI into your Identity Provider's (IdP) application configuration.

  1. Complete the remaining fields: a. Client ID and Client Secret are both mandatory. b. You must provide either the Tenant ID (required for Microsoft Entra) or the Issuer URL (required for all other providers)

  2. Once all details are entered, click Submit. SSO is now configured for this team.

  3. After submission, a pop-up will display the Widget API Key. You will need this key later

Save this Widget API key immediately in a secure location, as it is displayed only once.

If you want to configure SSO for the iframe do this:

  • Since the AI assistant widget is embedded within a third-party parent website using an iframe, additional configuration is required to ensure a smooth authentication experience.

  • Refer to Understand Tech’s sample repository. This demonstration shows how to integrate the parent website’s frontend and backend with our SSO authentication flow.


2. Delete SSO for a team

  1. Navigate to Workspace > Teams and select your team.

  2. Click the Delete SSO button.


3. Linking SSO to an AI assistant

1

In the Workspace tab, select the AI assistant for which you want to enable SSO. From the options, select Share your model with others.

2

In the pop-up, select Customize the look and feel of your assistant. Then, scroll down and select Enable SSO.

3

Team Owners will see a list of all teams they have configured SSO for; select the team you want to associate with this model. Team Admins will only see the option for their single team; select it.

4

Click save!

5

SSO is now enabled on the AI assistant. To test, go back to the Share your model with others button and select the URL option.

6

You should be redirected to the Login screen:


Appendix: Provider-Specific Configuration

  1. Create an App Registration:

    1. Navigate to Azure Portal → Azure Active Directory → App registrations

    2. Click New registration

    3. Enter a name for your application

    4. Under Redirect URI, select Web and paste the Redirect URI copied from Understand Tech

    5. Click Register

  2. Retrieve Required Values:

    1. Client ID: Found on the app's Overview page as "Application (client) ID"

    2. Tenant ID: Found on the app's Overview page as "Directory (tenant) ID"

    3. Client Secret: Navigate to Certificates & secrets → New client secret. Copy the secret value immediately (it's shown only once)

  3. Enable ID Tokens:

    1. Navigate to Authentication

    2. Under Implicit grant and hybrid flows, check ID tokens

    3. Click Save

  4. In Understand Tech:

    1. Provide the Client ID, Client Secret, and Tenant ID

    2. Leave the Issuer URL field empty (not required for Entra)

4. Common Troubleshooting

  • Redirect URI Mismatch: Ensure the Redirect URI in your IdP exactly matches what's shown in Understand Tech (including protocol, trailing slashes, etc.).

  • Client Secret Invalid: If you regenerate a client secret in your IdP, you must update it in Understand Tech immediately.

  • Permissions/Scopes: Ensure your IdP application has been granted the necessary permissions (openid, email, profile at minimum).

  • Issuer URL Format: Double-check that your Issuer URL doesn't include trailing slashes or unnecessary paths. It should be the base authentication URL only.

  • Cross-Origin Issues: For iframe integration, ensure your IdP supports third-party cookies or configure appropriate SameSite cookie settings. Refer to Section IV of this guide for iframe-specific configuration.

Last updated