- Newest
- Most votes
- Most comments
I have just payd attantion that the error 400 happens when on the address bar I see: "https://signin.aws.amazon.com/saml#1" which is equl to the "Identifier (Entity ID)" value , which is proposed by the article: https://learn.microsoft.com/en-us/entra/identity/saas-apps/amazon-web-service-tutorial
answered 2 years ago
To set up Single Sign-On (SSO) for multiple AWS accounts from Azure AD without using AWS IAM Identity Center, you'll need to create separate enterprise applications in Azure AD for each AWS account. Here's the correct approach:
-
In Azure AD, create a new enterprise application for each AWS account you want to add. Give each application a unique name.
-
For each application, configure the SAML settings:
- Set the "Identifier (Entity ID)" to "urn:amazon:webservices" (this should be the same for all AWS accounts).
- The "Reply URL (Assertion Consumer Service URL)" should be "https://signin.aws.amazon.com/saml" (without the "#1" at the end).
-
In each AWS account, create a new SAML identity provider in IAM. Upload the Azure AD Federation Metadata XML file for the corresponding Azure AD application.
-
Create the necessary IAM roles in each AWS account that the federated users will assume.
-
In Azure AD, configure user and group assignments for each application to control who has access to which AWS account.
-
Set up the necessary SAML attributes in Azure AD to map to the AWS roles.
The error you're encountering (400 Bad Request) suggests there might be an issue with the SAML configuration, particularly the Identifier or Reply URL. Double-check these values and ensure they match exactly what's expected by AWS.
Remember, each AWS account needs its own separate enterprise application in Azure AD, but they all use the same base URL for sign-in. The differentiation between accounts happens through the SAML assertion and role mapping.
This approach allows you to maintain separate SSO configurations for multiple AWS accounts without using IAM Identity Center, giving you fine-grained control over access to each account.
Sources
Using IAM access centre and federation in one account | AWS re:Post
Integrate third-party SAML solution providers with AWS - AWS Identity and Access Management
Identity Provider over Identity Center? | AWS re:Post
answered 2 years ago
Relevant content
asked 5 years ago
