Shibboleth
Use the Shibboleth IdP, or another IdP that releases the standard OID attribute names. The module does not detect this preset. Select it manually.
Preset values
Section titled “Preset values”The Shibboleth / eduPerson (OIDs) preset fills in these attributes:
| Field | Attribute |
|---|---|
| Email Attribute | urn:oid:0.9.2342.19200300.100.1.3 |
| First Name Attribute | urn:oid:2.5.4.42 |
| Last Name Attribute | urn:oid:2.5.4.4 |
| Group Attribute | urn:oid:1.3.6.1.4.1.5923.1.5.1.1 |
The import does not select this preset. Select it manually in Load Preset.
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 Shibboleth
Section titled “Configure Shibboleth”-
Download the file from Download SP Metadata in Magento.
-
Add this file to the metadata providers of the IdP.
-
Configure the IdP to release
mail,givenName,snandisMemberOfto the SP Entity ID of Magento. -
Make sure that the IdP signs the assertions. Refer to the caution above.
-
Download the metadata of the IdP. For the Shibboleth IdP, the usual path is
/idp/shibboleth.
Shibboleth settings at a glance
Section titled “Shibboleth settings at a glance”| Shibboleth setting | Value |
|---|---|
| SP metadata | The file from Download SP Metadata, in a metadata provider of the IdP |
| Relying party | SP Entity ID |
| Sign assertions | On, unless Magento requires only a signed response |
| Encrypt assertions | Off, or on with an active service provider key |
| IdP metadata | /idp/shibboleth. Import this file in Magento. |
| Attribute name | Source at Shibboleth | Note |
|---|---|---|
urn:oid:0.9.2342.19200300.100.1.3 |
mail |
Attribute release |
urn:oid:2.5.4.42 |
givenName |
Attribute release |
urn:oid:2.5.4.4 |
sn |
Attribute release |
urn:oid:1.3.6.1.4.1.5923.1.5.1.1 |
isMemberOf |
Optional |
The attribute names must be exactly the same as in the Magento attribute mapping. To see the names that Shibboleth sends, test the provider.
Configure Magento
Section titled “Configure Magento”-
Open the provider in Magento.
-
Click Import Metadata, and select the metadata file of Shibboleth.
-
In Attribute Mapping > Load Preset, select Shibboleth / eduPerson (OIDs), 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”isMemberOf sends the group names that the IdP releases. For the role rules, refer to Role mapping.
Two-factor authentication
Section titled “Two-factor authentication”The preset does not configure the authentication methods. For the conditions that replace the two-factor authentication of Magento, refer to Two-factor authentication.
Common problems
Section titled “Common problems”| Problem | Solution |
|---|---|
| The login fails with “The assertion is encrypted, and no service provider key is active to decrypt it.” | The IdP encrypts the assertion, and Magento has no active key. Refer to the caution above. |
For more problems, refer to Troubleshooting.