This feature is only available at request. Please contact support@aichat.com for more information to enable this feature.
Prerequisites
Before configuring SSO, make sure the following requirements are met:- AiChat administrator access: You must be an Organization Administrator for the organization you want to configure.
- Identity Provider permissions: You must have sufficient administrator permissions in your Identity Provider to create and configure an OIDC or SAML application.
- Populated email fields: AiChat uses email addresses to identify and match user accounts. Each directory user must have a valid email address that matches the email used for their AiChat account.
- SSO feature access: SSO must be enabled for your organization according to your subscription or contract.
Supported Identity Provider
AiChat currently supports the following Identity Providers:Admin Setup and Sign-In Controls
As an Organization Administrator, you can add, test, and activate an SSO connection from your organization settings. Once the SSO feature is enabled, you can control which sign-in methods members of your organization are allowed to use. At least one of the following sign-in methods must remain enabled:- Magic Link: Authentication using a link sent to the user’s email address. This method is default option.
- SSO: Authentication through the organization’s configured Identity Provider. This method requires the SSO feature to be enabled.
SSO User Exception List
You can add selected users to the SSO exception list. Users on this list are not required to use SSO and can sign in using another authentication method enabled for the organization. This option may be useful for approved external users, service accounts, or administrators who require an alternative sign-in method.End-User Login Flow
To access an SSO-enabled organization:- The user opens the organization-specific AiChat login page.
- The user selects Sign in with SSO.
- AiChat redirects the user to the organization’s configured Identity Provider.
- The user completes authentication with the Identity Provider.
- After successful authentication, the user is redirected to the organization dashboard in AiChat.
Setting up SSO Connection
- Microsoft Azure Entra ID OIDC
- Google Workspace SAML
Microsoft Entra ID can be connected to AiChat using OpenID Connect (OIDC).
Before you begin, open AiChat App and the Microsoft Entra admin center in separate browser tabs. You will need to copy information between the two platforms during the setup.Information Exchange During Set Up
Step 1: Start the connection in AiChat App
- Sign in to AiChat as an Organization Administrator or Security Manager. Open the organization you want to configure.
- Create a new SSO connection by going to Settings > Authentication > SSO, and click on [+ Add connection]
- In new SSO Connection, input the following
- Display Name: this name will appear on AiChat Login screen when there is more than 1 SSO connection available
- Connection Type and Identify Provider: Select OIDC → Microsoft Entra ID
- Click Create new connection. On the next screen, you’ll be asked to enter more information obtained from Microsoft Entra ID.
Keep this page open. You will return to it after configuring the application in Microsoft Entra ID
Step 2: Register AiChat in Microsoft Entra ID
- Sign in to the Microsoft Azure portal, then open Microsoft Entra ID.
- From the left navigation menu, select App registrations, then click + New registration.
-
Complete the application details:
- Name: Enter a recognizable name, such as
AiChat – [Organization name]. - Supported account types: Select Single Tenant only, since only your Azure directory will be integrating with AiChat
- Redirect URI: Leave this blank for now. You will configure it in a later step.
- Name: Enter a recognizable name, such as
- Click Register. You will be redirected to the application’s Overview page.
Step 3: Complete the connection in AiChat App.
- From the application’s Overview page in Microsoft Entra ID, copy the following values into the corresponding AiChat fields:
- Copy Directory (tenant) ID into Directory (tenant) ID.
- Copy Application (client) ID into Client ID.
- Create a client secret:
- Under Client credentials, select Add a certificate or secret.
- Select + New client secret.
- Enter a description, choose an expiration period, and click Add.
- Immediately copy the secret from the Value column.
- Paste it into the Client Secret field in AiChat.
- Click Done in AiChat to test the connection.
- If the connection is successful, continue to the next step. If it fails, verify the Tenant ID, Client ID, and Client Secret, then test the connection again.
Step 4: Add AiChat redirect URI to Microsoft Entra ID
- Copy the Redirect URL from AiChat.
- In Microsoft Entra ID, go to App registrations > [your registered application] > Authentication.
- Under Redirect URI tab, click Add Redirect URI.
- Select Web.
- Paste the AiChat Redirect URL into the Redirect URIs field.
- Click Configure to save the redirect URI.
Step 5: Setup email claims in Azure App Registration
- Under App Registration > Token Configuration, go to + Add optional claim
- Add both ID and Access Token Type with email as claim. You should have 2 email claims in the list
Step 6: Configure API permissions
- In Microsoft Entra ID, go to App registrations > [your application] > API permissions.
- Click Add a permission, then select Microsoft Graph > Delegated permissions.
- Search for and select these permissions:
emailopenidprofileUser.Read
- Click Add permissions.
- To approve the permissions for all users, click Grant admin consent for [your organization], then confirm by clicking Yes.
Step 7: Add users and test SSO
- Add or invite users to your organization in AiChat platform, then test the SSO connection.
- Ensure each user’s email address in AiChat matches the Email property in Microsoft Entra ID to identify and match the user during SSO authentication.