Skip to content

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.

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.

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. Download the file from Download SP Metadata in Magento.

  2. Add this file to the metadata providers of the IdP.

  3. Configure the IdP to release mail, givenName, sn and isMemberOf to the SP Entity ID of Magento.

  4. Make sure that the IdP signs the assertions. Refer to the caution above.

  5. Download the metadata of the IdP. For the Shibboleth IdP, the usual path is /idp/shibboleth.

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.

  1. Open the provider in Magento.

  2. Click Import Metadata, and select the metadata file of Shibboleth.

  3. In Attribute Mapping > Load Preset, select Shibboleth / eduPerson (OIDs), 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.

isMemberOf sends the group names that the IdP releases. For the role rules, refer to Role mapping.

The preset does not configure the authentication methods. For the conditions that replace the two-factor authentication of Magento, refer to Two-factor authentication.

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.