Skip to content

AWS IAM Identity Center

Use a customer managed SAML 2.0 application in AWS IAM Identity Center. IAM Identity Center sends only the attribute mappings of the application.

The AWS IAM Identity Center preset fills in these attributes:

Field Attribute
Email Attribute email
First Name Attribute firstName
Last Name Attribute lastName
Group Attribute groups

The import selects this preset when the IdP entity ID starts with https://portal.sso.<region>.amazonaws.com/saml/assertion/.

Create the provider in Magento, and save it as inactive. Copy the SP Entity ID and the ACS URL from the Service Provider fieldset.

  1. In the IAM Identity Center console, go to Applications.

  2. Add a customer managed SAML 2.0 application.

  3. Download the IAM Identity Center SAML metadata file.

  4. In Application ACS URL, enter the ACS URL of Magento.

  5. In Application SAML audience, enter the SP Entity ID of Magento.

  6. Save the application.

  7. Edit the attribute mappings of the application.

  8. Map Subject to ${user:email} with the emailAddress format.

  9. Add email with ${user:email}, firstName with ${user:givenName} and lastName with ${user:familyName}.

  10. Optional: add groups with ${user:groups}.

  11. Assign the users or the groups that can sign in to Magento.

AWS IAM Identity Center settings at a glance

Section titled “AWS IAM Identity Center settings at a glance”
AWS IAM Identity Center setting Value
Application ACS URL ACS URL
Application SAML audience SP Entity ID
IAM Identity Center SAML metadata file Import this file in Magento.
Attribute name Source at AWS IAM Identity Center Note
Subject ${user:email} Format emailAddress
email ${user:email} Attribute mapping
firstName ${user:givenName} Attribute mapping
lastName ${user:familyName} Attribute mapping
groups ${user:groups} Optional. Sends group IDs.

The attribute names must be exactly the same as in the Magento attribute mapping. To see the names that AWS IAM Identity Center sends, test the provider.

  1. Open the provider in Magento.

  2. Click Import Metadata, and select the metadata file of AWS IAM Identity Center.

  3. In Attribute Mapping > Load Preset, select AWS IAM Identity Center, if the import did not select it.

  4. Examine the imported values, and the note of the preset.

  5. In Your Password, enter your current admin password.

  6. Click Save and Continue Edit.

  7. Click Test Connection, and sign in with a test user.

  8. If the test succeeds, turn on Active, and save the provider again.

  9. Add and verify the domain of the users.

${user:groups} sends the IDs of the groups, not their names. Use the IDs as the Group Value of the role rules. For the role rules, refer to Role mapping.

IAM Identity Center does not send how the user authenticated. Thus the two-factor authentication of Magento always applies.

Problem Solution
The role rules do not match. IAM Identity Center sends group IDs. Copy the IDs from the test result.

For more problems, refer to Troubleshooting.