Tencent Cloud Single Sign-On for Users
This topic describes how to configure Tencent Cloud Single Sign-On for Users (SSO) in Alibaba Cloud Identity as a Service (IDaaS). With Single Sign-On for Users, your enterprise members access Tencent Cloud as Cloud Access Management (CAM) sub-users.
Procedure
Step 1: Create an application
Log on to the IDaaS console.
Select your IDaaS instance and click Access Console below the Actions section.
Choose , and then search for Tencent Cloud Single Sign-On for Users. Click Add Application.
Confirm the application name and click Add Now.
Step 2: Configure SSO for the application
After you add the application, you are automatically redirected to the SSO configuration page of the application, where you complete the configuration.
Enter the ID of your Tencent Cloud root account (you can get the account ID on the homepage of the Tencent Cloud console or in the Account Center).
Select the application account name attribute. When a user initiates SSO, this field is used as the primary key to map the user to a sub-user in Tencent Cloud, so that the user can log on to Tencent Cloud.
If your IDaaS account name is the same as your Tencent Cloud username, in the application account field, you can select IDaaS Username.

If your IDaaS account name is different from your Tencent Cloud username, in the application account field, select application account. On the application account page, bind the account mapping, select the IDaaS account that is used for SSO, and then enter the Tencent Cloud username.



If you use the application only for testing, you can set Authorization Scope to All Users to skip the step of granting permissions to IDaaS accounts.
In the Application Configuration section, download the IdP Metadata file and save it to your computer. This file is used to establish Tencent Cloud's trust in IDaaS.
Step 3: Configure Single Sign-On for Users in Tencent Cloud
Log on to the Tencent Cloud CAM console.
In the left-side navigation pane, click Identity Provider - User SSO.
On the User SSO management page, you can view the current User SSO status and configuration.
Enable User SSO, upload the IdP Metadata file that you downloaded from IDaaS in Step 2, and then click Save to complete the configuration.
Step 4: Grant permissions to CAM sub-users in Tencent Cloud
You may have existing Tencent Cloud sub-users, or you may want to synchronize accounts from IDaaS to Tencent Cloud (for more information, see Account synchronization: Event callback). In this case, grant permissions to the sub-users in the User List as needed so that the sub-users have the appropriate permissions to access Tencent Cloud resources. If you only want to test the SSO capability, skip this step.
Step 5: Test SSO
You can now start Tencent Cloud Single Sign-On for Users. SSO can be initiated in the following two ways.
Initiated from IDaaS (IdP-initiated): Log on to the IDaaS application portal page with an IDaaS account that has permissions on the Tencent Cloud Single Sign-On for Users application. Click the Tencent Cloud Single Sign-On for Users application icon to initiate SSO and log on to Tencent Cloud.
Initiated from Tencent Cloud (SP-initiated): Use a private browser window to open the Tencent Cloud logon page. Click Sub-user at the bottom of the page, and then click the User SSO Logon button. If you have already logged on to the IDaaS application portal, you can log on to Tencent Cloud directly. Otherwise, you are redirected to the IDaaS logon page. After you log on to IDaaS, you are automatically logged on to Tencent Cloud.