Skip to content

Huawei Cloud Single Sign-On

Overview

This chapter introduces the internal implementation process and configuration steps for BambooCloud IDaaS and Huawei Cloud to perform federated identity authentication based on the SAML protocol. Huawei Cloud IAM Service Reference Document

Authentication Configuration

Add Huawei Cloud Application on BambooCloud IDaaS

  1. Log in to the Enterprise Center. In the navigation bar, choose Resources > Applications.

  2. On the Enterprise Applications page, click Add Pre-integrated Application.

  3. On the Add Pre-integrated Application page, click the Huawei Cloud application.

  4. In the Add Application dialog box that appears, keep the default general information and click Next.

  5. On the Authentication Parameter Configuration page, choose Import SP Application Metadata > Select File, and select the Huawei Cloud metadata file. The system will automatically upload the file and extract the metadata.

  6. Download the Huawei Cloud metadata file and set the file name, for example, "SP-metadata.xml".

  7. When Select File changes to , it means the system has extracted the metadata. Click Next to successfully add the Huawei Cloud application.

Create an Identity Provider in the Huawei Cloud Console

  1. Log in to the Huawei Cloud console as an administrator, enter the Unified Identity Authentication Service IAM, and create a SAML protocol identity provider. For details, refer to Creating an Identity Provider on Huawei Cloud.

  2. View the identity provider information and configure the BambooCloud IDaaS metadata. For details, refer to Configuring the Metadata File on Huawei Cloud.

    How to obtain BambooCloud IDaaS metadata: Log in to the BambooCloud IDaaS Enterprise Center. In the navigation bar, choose Settings > Service Configuration > IdP Configuration. On the IdP Configuration page that appears, click IdP Metadata in the upper right corner. The data will be saved automatically.

  3. Set identity conversion rules. Refer to Huawei Cloud Identity Conversion Rule Configuration.

    Rule example:

    json
    [
        {
            "remote": [
                {
                    "type": "Username"
                }
            ],
            "local": [
                {
                    "user": {
                        "name": "IDAAS_{0}"
                    }
                },
                {
                    "group": {
                        "name": "idaastest"
                    }
                }
            ]
        }

    Simple rule description: The Username in remote is the user attribute passed by BambooCloud IDaaS to Huawei Cloud. After the user authenticates through BambooCloud IDaaS and enters the Huawei Cloud console, the displayed name is BambooCloud IDaaS_Username, and the user has the permissions under the idaastest group.

    Conditions for the rule to take effect:

    1. Add a mapping with the attribute name Username in the authentication configuration of the Huawei Cloud application in BambooCloud IDaaS.
    2. Add the idaastest user group in the Huawei Cloud Unified Identity Authentication Service.

Configure Huawei Cloud Mount URL

TIP

Huawei Cloud currently only supports login initiated by Huawei Cloud, so you need to obtain the login link from the Huawei Cloud identity provider and update it to the Huawei Cloud application mount URL in BambooCloud IDaaS. Only then can you log in to Huawei Cloud through the BambooCloud IDaaS User Center.

  1. Obtain the login link of the Huawei Cloud identity provider in the basic information of the Huawei Cloud identity service provider.

  2. Edit the login configuration of Huawei Cloud in BambooCloud IDaaS, Website Application > Mount URL, and replace it with the identity provider login link obtained in the previous step.

User Authorization

In BambooCloud IDaaS, for the Huawei Cloud application, go to Authorization Management > Application Account > Add Account.

Login Verification

Log in to the BambooCloud IDaaS User Center with an authorized account, click the Huawei Cloud logo, and single sign-on to the Huawei Cloud system.

BambooCloud IDaaS Open Platform