Try WSO2 Cloud for Free
Sign in

All docs This doc
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 34 Next »

Amazon web services (AWS) can be configured for SSO using WSO2 Identity Cloud by adding it as an application. After the configuration is done, you can simply access the AWS application from the applications list in the User Portal of WSO2 Identity Cloud. This triggers an authentication request to the Identity Cloud using the SAML protocol. The Identity Cloud sends an authentication response, and you are able to log in to AWS. The following diagram illustrates this process:


Figure: Accessing a AWS application using Identity Cloud

In this tutorial you will learn how to integrate AWS with WSO2 Identity Cloud to allow the users of AWS to automatically log in to the Identity Cloud.

See the following topics for a description of the concepts that you need to know when configuring SSO.

Before you begin, download the metadata XML file that allows you to set the identity cloud configuration details in any third-party application without having to key them in.

 How to download IdP metadata configuration xml
  1. Log in to WSO2 Identity Cloud.  
  2. Click the menu icon on the top, left corner of the screen and click Applications:

    Alternatively, click Overview on the menu bar and click View Applications.

  3. Click DOWNLOAD IDP METADATA to download the IDP metadata file. (This file gets downloaded to a local folder.)

Let's get started!

Setting up AWS for SSO

  1. Go to and click Sign in to the Console.

  2. Sign in to AWS Console using a valid AWS account.
  3. In the AWS Services page, under Security, Identity & Compliance, click IAM.
  4. In the left navigation panel, click Identity providers.
  5. Click Create Provider.
  6. Create an identity provider by selecting the provider type as SAML, entering a Provider Name, uploading IDP metadata xml file, and clicking Next Step.
  7. Verify the Provider information and click Create.

    Once the Identity Provider is created, you see the following screen with the message that the SAML provider is created and the created provider is listed with Type of protocol and Creation Time
  8. Now, you need to configure a role for SSO. In the left navigation panel, click Roles.
  9. Click Create new role
  10. In Select role type screen, select Role for identity provider access option and select Grant Web Single Sign-On (WebSSO) access to SAML providers by clicking Select button. 
  11. In Establish Trust page, select the SAML provider that you have creating the role for (i.e. wso2_identity_cloud) and click Next Step.
  12. In Verify Role Trust page, verify the Policy Document, and Next Step.
  13. In Attach Policy page, select AdministratorAccess policy and click Next Step.
  14. In Set role name and review page, provide a valid role name and, click Create Role.

    Once the role is created, you can see it is listed with it's name, description and creation time.
  15. The next step is to configure an on-premise user store for AWS. Since AWS needs a special claim to help them decide the permissions of the signing in user, the following changes should be done in ON_PREMISE_AGENT_HOME/conf/claim-config.xml. This file is created when you download the agent. 

AWS LDAP Settings

It is required at the AWS end to have an LDAP attribute set for the users.

The value of the attribute should be <AWS_SSO_ROLE_ARN>,<AWS_SSO_IDP_ARN>

e.g. arn:aws:iam::505034233337:role/feduser,arn:aws:iam::505034233337:saml-provider/tenant10_dot_com

To integrate WSO2 Identity Cloud with AWS

  1. Log in to WSO2 Identity Cloud.
  2. Click the menu icon on the top, left corner of the screen.

  3.  Click Applications from the Admin Portal to navigate to the Application list.

  4. Click ADD APPLICATION to add a AWS application.

  5. Select AWS from the application list and click Continue

  6. Provide an application name and click Add.

  7. Provide a Display name and click Update.

  8. The application will be added to the Identity Cloud. 
  9. Click on the Settings menu at the top right corner of the page and click User Portal.
  10. Click the added AWS App.

    Now you can access the AWS home page without having to sign in because you configured SSO between AWS and WSO2 Identity Cloud.  

  • No labels