Microsoft Entra ID
Microsoft Entra ID can be configured as the Identity Provider for OIDC, which is an authentication protocol that securely verifies user identities through a trusted provider. This document explains how to obtain the required credentials from the Microsoft Azure Portal. Refer to the OIDC Setup guide to configure OIDC in your application.
Generating Client ID and Client Secret on Microsoft Azure Portal
-
Go to ToolJet > Workspace Settings > Workspace login > Enable OpenID Connect > Add provider.
(Example URL - https://app.corp.com/demo-workspace/workspace-settings/workspace-login)
-
Without entering any details, click Save changes to generate and copy the Redirect URL.
-
Go to Microsoft Azure Portal and navigate to Manage Microsoft Entra ID.
-
Register your application or create a new one by clicking on Add > App Registration.
-
Fill the details as per your requirements. In the Redirect URI, enter the Redirect URL you got from ToolJet and click on Register.
-
You can find the Client ID on the Application's Overview tab. To get the Client Secret, go to the application's Overview tab > Manage > Client credentials > Add a certificate or secret > New client secret. Copy the value field.
-
Enter the Client ID and Client Secret in the OIDC configuration modal in ToolJet.
-
The Well know URL will be:
https://login.microsoftonline.com/<directory(tenant)-id>/v2.0/.well-known/openid-configurationYou can find the Directory (tenant) ID on the Overview tab of your application in Azure.
You shall now be able to login to your ToolJet workspace using Microsoft Entra ID.
Configuring Group Sync using Microsoft Entra ID
-
Go to Azure Portal > Enterprise Applications > Your application.
-
In the left panel, go to Manage > Single sign-on > Attributes & Claims > Edit > Add a group claim > Click on Go to Token configuration.
-
Click on Add groups claim > All groups (You can choose the group type according to your need) and click Add. A claim named groups will be created.
-
Go to Azure Portal > Groups > All groups. Select the group you want to create a mapping for and copy the Object ID.
-
Go to ToolJet > Workspace Settings > Workspace login > OpenID Connect > Your Microsoft Entra ID OIDC Configuration > Enable Group Sync. (Example URL - https://app.corp.com/demo-workspace/workspace-settings/workspace-login)
-
Enter the Claim Name as
groups. If the name you got in Step 3 was different, enter that. -
The Group mapping will be as follows:
Object ID from Step 4 -> ToolJet group name