SSO Azure AD
Introduction
Azure AD is the new enterprise single sign-on login method in TDengine Cloud, usually for Azure customers. You can simply configure your Azure AD and TDengine Cloud integration in the TDengine Cloud portal.
For more details of the Azure AD SSO integration, please see the following Azure documents:
Register an application with the Microsoft identity platform
Register your app for Auth0 with Azure AD
Register an application for Azure AD
Step 1: Sign in to the Azure portal.
Step 2: Make sure you're using the Microsoft Entra tenant that contains your subscription:
-
In the Azure portal toolbar, select the Directories + subscriptions icon.
-
On the Portal settings | Directories + subscriptions page, find your Microsoft Entra directory that contains your subscription in the Directory list, and then select Switch button next to it.
Figure 2. Switch Microsoft Entra tenant
Step 3: Register Application
-
On the portal homepage, select Microsoft Entra ID and click to enter the Microsoft Entra tenant management page.
Figure 3. tenant management -
Select "App Registrations" menu, then click "New Registration" button.
Figure 4. app-registration-1 -
Input a Name for the application.
Figure 5. app-registration-2 -
Under "Supported account types", please select "Accounts in this organizational directory only".
-
Under Redirect URI, select Web and enter "https://tdengine.us.auth0.com/login/callback".
-
Click Register button to go to the next page.
-
Add permissions:
Figure 6. add permissions Configure the following permissions for the Microsoft Graph API.
Delegated permissions Description User > User.Read So your app can log in the user and read the logged in user's profile. Directory > Directory.Read All Therefore, your app can read directory data on behalf of the logged in user. -
Record the application (client) ID shown on the application overview page. You will need the client ID when configuring the identity provider in the next step.
-
Create client secret:
- Click New Client Secret.
- Enter a description for the key, for example "sso TDengine Cloud" , and click Add.
Figure 7. create client secret
-
Record the application password that appears in the Value column. You will need the client secret when configuring the identity provider in the next section.
Step 4: Configure Azure AD single sign-on in TDengine Cloud
- Sign in to the TDengine Cloud portal. (If you don’t have an account yet, please register an account as an administrator account first.)
- Create an organization or edit an existing organization:
-
Enable SSO and select Azure AD in the drop-down options.
-
Input Domain, Client ID and Client Secret values which you configured in the Azure portal, and click the "Save SSO Config" button.
-
Verify your configured Azure AD single sign-on integration. Save the SSO configuration successfully, and you can see a verified URL link returned on the interface. Click or copy the link to your browser to verify that your configuration is valid.
-
After you verify your configuration, select the "Verified" option and click the Save button to create your organization. All members of the organization will sign on to TDengine Cloud through the Azure AD domain you have configured.
-
Copy the unique TDengine Cloud login URL, such as "https://cloud.tdengine.com/auth/login?azure_sso=xxxx" to your organization and send it to your organization members to login to TDengine Cloud.
-
How to update the Azure AD single sign-on configuration
- Log in to TDengine Cloud as an administrator.Go to the Organization Management page. Click the Change Organization button.
- Then you can modify the configuration of the Azure Ad SSO configuration in the form. only Client ID and Client Secret can be modified.
How to invite a new Azure organization user to your TDengine Cloud organization
-
Create a new user under your Azure AD organization.
- Select “Manage”, then select “Users”. Click "New User", Then fill in the user information to create a new organization user.
- Make sure to fill in a valid email address in the "Properties" --> "Contact information" Form. This is so that the users you invite can receive an email to activate their TDengine Cloud account.
Figure 11. add contact email
-
Log in to TDengine Cloud to invite users using the organization you've created and configured with Azure AD SSO.
- In the top organization drop-down selection box, select the organization that has the Azure AD SSO tag.
- Click the "Users" menu on the left, then click "Add new user" button.
- In the pop-up box, fill in the contact email address configured by the user you added in the Azure organization in the previous step. The new user will then receive an email to activate their TDengine Cloud account.
- Notify the user to activate their account to join your TDengine Cloud organization using Azure AD SSO.