This topic describes how to configure the metadata for user-based Single Sign On (SSO) according to SAML 2.0 to establish trust between your identity provider (IdP) and Alibaba Cloud.

Prerequisites

A default domain name, a domain alias, or an auxiliary domain name is set to simplify SAML SSO. For more information, see Manage the default domain name of an Alibaba Cloud account and Create a domain alias for an Alibaba Cloud account.

Procedure

  1. Log on to the RAM console.
  2. In the left-side navigation pane, click SSO.
  3. Click the User-based SSO tab.
  4. In the SSO Settings section, click Modify to modify the SSO settings as needed.
    • SSO Status: You can enable or disable the SSO function as needed.
      Note This setting applies to all RAM users under your Alibaba Cloud account.
      • The SSO function is disabled by default. If the SSO function is disabled, RAM users can use their passwords for logon, and all SSO settings do not take effect.
      • If you enable the SSO function, RAM users cannot use their passwords for logon. They must log on to an IdP for identity authentication. If the SSO function is disabled later, the page for logon by using passwords is automatically displayed.
    • Metadata File: You can click Upload to upload the metadata file provided by your IdP.
      Note The metadata file, usually in XML format, is provided by an IdP. It contains the IdP's logon service address and X.509 public key certificate that is used to verify the validity of the SAML assertion issued by the IdP.
    • Auxiliary Domain: (Optional) You can turn on or turn off this function as needed.
      • If you turn on this function, you can set an auxiliary domain name and use it as the suffix of the NameID element in the SAML assertion.
      • If you turn off this function, you can only use the default domain name or domain alias of your Alibaba Cloud account as the suffix of the NameID element in the SAML assertion.

      For more information about values of the NameID element, see Configure the SAML of an IdP during user-based SSO.

      Note If you set a domain alias and an auxiliary domain name at the same time, only the domain alias or the default domain name can be used as the suffix of the NameID element.

What to do next

You can migrate or synchronize data from your IdP to Alibaba Cloud or Alibaba Cloud RAM by using either of the following methods:
  • Log on to the RAM console and create RAM users that match the users in your IdP.
  • Use a RAM SDK to write a program or use Alibaba Cloud command line interface (CLI) to customize a solution.