This topic describes the scenario, process, and configuration of role-based Single Sign On (SSO).
In scenarios where Alibaba Cloud and the identity management system of an enterprise work together to perform role-based SSO, Alibaba Cloud is the service provider (SP) and the enterprise system is the identity provider (IdP). Through role-based SSO, the enterprise can manage users in the local IdP without synchronizing users from your IdP to Alibaba Cloud, and the enterprise employee can log on to Alibaba Cloud by using a specific RAM role.
Role-based SSO process
Through role-based SSO, you can access Alibaba Cloud either by logging on to the Alibaba Cloud console or by using a program.
Access Alibaba Cloud through the console
- Alice uses the browser to select Alibaba Cloud as the target service on the logon
page of the IdP.
For example, if the IdP is Microsoft Active Directory Federation Service (AD FS), the log on URL will be
https://ADFSServiceName/adfs/ls/IdpInitiatedSignOn.aspx.Note Some IdPs require users to log on first and then select an SSO application that represents Alibaba Cloud.
- The IdP generates an SAML response to the browser.
- The browser redirects to the page of the SSO service, and forwards the SAML response.
- The SSO service uses the SAML response to request an STS token from the Alibaba Cloud
STS service, and generates a URL that can log on to the Alibaba Cloud console with
the STS token.
Note If the SAML response contains attributes that map to multiple RAM roles, the user is prompted to select a role firstly.
- The SSO service returns the URL to the browser.
- The browser redirects to the URL, and logs on to the Alibaba Cloud console with the specific RAM role.
Access Alibaba Cloud through a program
- Alice initiates an authentication request to the IdP through a program.
- The IdP generates an SAML response that contains the user's SAML assertion, and returns the SAML response to the program.
- The program calls the AssumeRoleWithSAML API action of the Alibaba Cloud STS service, and forwards the information including the ARN of an Alibaba Cloud IdP, the ARN of the role to be assumed, and the SAML assertion obtained from the IdP.
- The STS service verifies the SAML assertion and returns an STS token to the program.
- The program calls an Alibaba Cloud API action with the STS token.
Configure role-based SSO
- To make sure your IdP is trusted by Alibaba Cloud, you must configure the IdP in the
Alibaba Cloud console.
For more information, see Configure the SAML for role-based SSO.
- You must use a program or log on to the RAM console to create RAM roles and grant
permissions to them.
For more information, see Create a RAM role for a trusted IdP.
- To make sure Alibaba Cloud is trusted by the IdP, you must configure Alibaba Cloud
as a trusted SAML SP and configure SAML assertions in your IdP.
For more information, see Configure the SAML of an IdP during role-based SSO.
The processes of configuring SAML assertions and an SAML SP vary according to the IdP system. For more information about how to implement role-based SSO from AD FS to Alibaba Cloud, see Implement role-based SSO by using AD FS.