Generic SAML 2.0 IdP
Use this guide for an IdP that has no preset, or to understand the general procedure. The other guides of this section give the specified values for each preset.
What the IdP must support
Section titled “What the IdP must support”| Item | Requirement |
|---|---|
| Protocol | SAML 2.0, Web Browser SSO profile |
| Request binding | HTTP-Redirect. The module sends requests only with this binding. |
| Response binding | HTTP-POST to the ACS URL |
| Signature | A signed assertion, a signed response, or both. RSA with SHA-256, SHA-384 or SHA-512. |
| Encryption | Optional. The module decrypts an encrypted assertion with AES-GCM or AES-CBC content encryption and RSA-OAEP key transport. Refer to Encrypted assertions. |
| Signing certificate | An RSA X.509 certificate. The module does not support ECDSA. |
| NameID | A NameID that is not encrypted. An email address is the easiest choice. |
Values for the IdP
Section titled “Values for the IdP”Create the provider in Magento first, and save it as inactive. Then give the IdP these values from the Service Provider fieldset:
| IdP setting | Magento value |
|---|---|
| Entity ID, audience, identifier | SP Entity ID |
| ACS URL, reply URL, single sign-on URL of the SP | ACS URL |
| SP metadata | The file from Download SP Metadata |
| SP signing certificate (only for signed requests) | The certificate of the active service provider key |
Attributes to send
Section titled “Attributes to send”| Attribute | Required | Use |
|---|---|---|
| Email address | Yes, unless the NameID is the email address | Finds, links and creates the admin user. |
| First name | Yes, for provisioning | The first name of the admin user. |
| Last name | Yes, for provisioning | The last name of the admin user. |
| Groups or roles | No | The role rules. |
| Authentication methods (AMR) | No | Lets a phishing-resistant sign-in replace the two-factor authentication of Magento. Refer to Two-factor authentication. |
Procedure
Section titled “Procedure”-
Create the provider in Magento, and save it as inactive.
-
At the IdP, create a SAML 2.0 application with the values above.
-
Configure the attributes that the IdP sends.
-
Assign the users or the groups that can sign in to Magento.
-
Download the IdP metadata XML file.
-
In Magento, click Import Metadata, and select the file.
-
Set the attribute mapping. If the import did not fill it in, enter the attribute names manually.
-
Save the provider, and test it.
-
Activate the provider.

Common problems
Section titled “Common problems”| Problem | Solution |
|---|---|
| The IdP sends attributes with friendly names only. | The module matches the name or the friendly name. Use the value that the test result shows. |
| The IdP has no metadata file. | Enter the IdP Entity ID, the IdP Single Sign-On URL and the IdP Signing Certificates manually. |
| The login fails with “The assertion is not signed.” | Configure the IdP to sign the assertion. Or turn off Require Signed Assertions and turn on Require Signed Response. |
For more problems, refer to Troubleshooting.