SSO Access to HUAWEI CLOUD

Introduction

HUAWEI CLOUD provides the identity provider function to implement federated identity authentication based on SAML or OIDC. This function allows users in your enterprise to access resources in your HUAWEI CLOUD account through SSO using their IdP accounts.

Basic Concepts

  • IdP

    An IdP collects and stores user identity information (such as usernames and passwords), and authenticates users when they log in. When users use their IdP accounts to log in to HUAWEI CLOUD through SSO, the IdP is OneAccess.

  • SP

    An SP uses the user information provided by trusted IdP to provide services for users. When users use their IdP accounts to log in to HUAWEI CLOUD through SSO, the SP is HUAWEI CLOUD.

  • SSO

    SSO is an access type that allows users to access a trusted SP system after logging in to the enterprise IdP. For example, after a trust relationship is established between OneAccess and HUAWEI CLOUD, users in OneAccess can use their existing accounts and passwords to access HUAWEI CLOUD through the login link in OneAccess.

  • SAML 2.0

    SAML 2.0 is an XML-based protocol that uses security tokens containing assertions to pass information about an end user between an IdP and SP. It is an open standard ratified by the OASIS and is being used by many IdPs. For more information about this standard, see SAML 2.0 Technical Overview.

This document describes the implementation and configuration of SSO access from OneAccess to HUAWEI CLOUD through SAML.

Configuration Process

Figure 1 Configuration process

Prerequisites

Creating an Identity Provider on HUAWEI CLOUD

Create an identity provider and configure the metadata file on the HUAWEI CLOUD console.

  1. Download the metadata file of OneAccess.

    1. Log in to the administrator portal.
    2. In the top navigation pane, choose Settings > Server Settings. Then click IdP.
    3. On the IdP page, click Download IdP Metadata in the upper right. The metadata file is automatically saved.

  2. Create an identity provider on HUAWEI CLOUD. For details, see Creating an Identity Provider on HUAWEI CLOUD.
  3. Configure the metadata file on HUAWEI CLOUD. For details, see Configuring the Metadata File for the Enterprise Identity Provider.

Establishing a Trust Between OneAccess and HUAWEI CLOUD

Configure the metadata file of HUAWEI CLOUD in OneAccess to establish a trust on HUAWEI CLOUD.

  1. Add the HUAWEI CLOUD application in OneAccess.

    1. Log in to the administrator portal.
    2. In the top navigation pane, choose Resources > Applications.
    3. Click Add Pre-integrated Application in the Pre-integrated Applications section.
      Figure 2 Adding a pre-integrated application
    4. On the Add Pre-integrated Application page, click HUAWEI CLOUD.
    5. On the Add Application page, confirm the general information, and click Next.
      Figure 3 Confirming general information
    6. On the Authentication Parameters page, choose Import SP Metadata, click Select File, select the HUAWEI CLOUD metadata file, and click Open. The system automatically extracts the metadata.
      Figure 4 Uploading a metadata file
    7. When the Select File button changes to √, the system has extracted the metadata. Click Next.
      Figure 5 Metadata extracted

  2. Configure mappings between OneAccess and HUAWEI CLOUD.

    For details about how to configure login, access control, and object models, see Modifying Application Configurations.

    1. Click the HUAWEI CLOUD application added in 1. On the application information page, click the HUAWEI CLOUD icon to go to the application details page.
    2. Choose Authentication Settings > Mappings, and click Add Mapping to configure mappings. For details about the parameters, see Mappings.
      Figure 6 Adding a mapping
    3. Click Test. On the Select User page, enter a username to test the mappings.
      Figure 7 Testing mappings

  3. Configure the login link in OneAccess.

    Choose Login Settings > Web Applications, click Modify, and replace the URL with the login link of the identity provider created in 2.

    For details about how to obtain the login link of the identity provider, see Logging In as a Federated User.

  4. Authorize users to access HUAWEI CLOUD.

    1. In the left pane, choose Authorization > Application Accounts. Then click Add Accounts, select users, and click Save. To authorize access using a policy, see the descriptions about the application account authorization policy in Modifying Application Configurations.
      Figure 8 Adding accounts
      Figure 9 Selecting users

Logging In as a User

Log in to the user portal as one of the users authorized in 4, and click HUAWEI CLOUD to access it.

  • The following message is displayed if no identity conversion rules are configured for the identity provider in 2.

    The OneAccess user only has read permissions for HUAWEI CLOUD by default.

    Figure 10 No permissions
  • The following page is displayed if identity conversion rules are configured for the identity provider in 2.
    • The OneAccess user has admin permissions.
    • To assign permissions to OneAccess users, configure identity conversion rules for the identity provider. For more information, see Configure Identity Conversion Rules.
    Figure 11 admin permissions granted