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.
Preset values
Section titled “Preset values”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/.
Before you start
Section titled “Before you start”Create the provider in Magento, and save it as inactive. Copy the SP Entity ID and the ACS URL from the Service Provider fieldset.
Configure AWS IAM Identity Center
Section titled “Configure AWS IAM Identity Center”-
In the IAM Identity Center console, go to Applications.
-
Add a customer managed SAML 2.0 application.
-
Download the IAM Identity Center SAML metadata file.
-
In Application ACS URL, enter the ACS URL of Magento.
-
In Application SAML audience, enter the SP Entity ID of Magento.
-
Save the application.
-
Edit the attribute mappings of the application.
-
Map Subject to
${user:email}with theemailAddressformat. -
Add
emailwith${user:email},firstNamewith${user:givenName}andlastNamewith${user:familyName}. -
Optional: add
groupswith${user:groups}. -
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.
Configure Magento
Section titled “Configure Magento”-
Open the provider in Magento.
-
Click Import Metadata, and select the metadata file of AWS IAM Identity Center.
-
In Attribute Mapping > Load Preset, select AWS IAM Identity Center, if the import did not select it.
-
Examine the imported values, and the note of the preset.
-
In Your Password, enter your current admin password.
-
Click Save and Continue Edit.
-
Click Test Connection, and sign in with a test user.
-
If the test succeeds, turn on Active, and save the provider again.
-
Add and verify the domain of the users.
Groups and roles
Section titled “Groups and roles”${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.
Two-factor authentication
Section titled “Two-factor authentication”IAM Identity Center does not send how the user authenticated. Thus the two-factor authentication of Magento always applies.
Common problems
Section titled “Common problems”| 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.