Step 1: Create an IdP Entity¶
To establish a trust relationship between an enterprise IdP and the cloud platform, set the user redirect URLs and create OAuth 2.0 credentials in the enterprise IdP. On the IAM console, create an IdP entity and configure authorization information.
Prerequisites¶
The enterprise administrator has created an account on the cloud platform, and has created user groups and assigned them permissions in IAM. For details, see Creating a User Group and Assigning Permissions. The user groups created in IAM will be mapped to federated users so that the federated users can obtain the permissions of the user groups to use cloud resources.
The enterprise administrator has read the help documentation of the enterprise IdP or has understood how to use the enterprise IdP. Configurations of different enterprise IdPs differ greatly, so they are not described in this document. For details about how to obtain an enterprise IdP's OAuth 2.0 credentials, see the IdP help documentation.
Creating OAuth 2.0 Credentials in the Enterprise IdP¶
Set redirect URIs https:///authui/oidc/redirect and https:///authui/oidc/post in the enterprise IdP so that users can be redirected to the OpenID Connect IdP in the cloud platform.
Obtain OAuth 2.0 credentials of the enterprise IdP.
Creating an IdP Entity on the Cloud Platform¶
Create an IdP entity and configure authorization information in IAM to establish a trust relationship between the enterprise IdP and IAM.
Log in to the IAM console, choose Identity Providers from the navigation pane, and click Create Identity Provider in the upper right corner.
Figure 1 Creating an IdP entity¶
Enter an IdP name, select OpenID Connect and Enabled, and click OK.
Figure 2 Setting IdP parameters¶
Note
The IdP name must be unique under your account. You are advised to use the domain name.
Verifying the Federated Login¶
Click the login link displayed on the IdP details page and check if the login page of the enterprise IdP server is displayed.
On the Identity Providers page, click Modify in the Operation column of the identity provider.
Copy the login link displayed on the Modify Identity Provider page and visit the link using a browser.
Figure 5 Copying the login link¶
If the enterprise IdP login page is not displayed, check the configurations of the IdP and the enterprise IdP server.
Enter the username and password of a user that was created in the enterprise management system.
If the login is successful, add the login link to the enterprise management system.
If the login fails, check the username and password.
Note
Federated users can only access the cloud platform by default. To assign permissions to federated users, configure identity conversion rules for the IdP. For details, see Step 2: Configure Identity Conversion Rules.
Follow-Up Procedure¶
Configure identity conversion rules to map enterprise IdP users to IAM user groups and assign permissions to the users. For details, see Step 2: Configure Identity Conversion Rules.
Configure the enterprise management system to allow users to access the cloud platform through SSO. For details, see (Optional) Step 3: Configure Login Link in the Enterprise Management System.