Configuring SAML for Drupal

The SAML module is compatible with Drupal 7.

First add Drupal to your OneLogin account.

Go to Apps >Add Apps.

Search for Drupal and select it.

On the Configuration page, you can optionally update the display name, update display icons, or set the app to be hidden to your users (for example, if you want to test in production before rolling it out).

In the Base URL field, enter the value below where mydomain.com is the domain where your Drupal instance is hosted.

Drupal SP metadata is published at http://mydomain.com/?q=onelogin_saml/metadataDrupal ACS URL is http://mydomain.com/?q=onelogin_saml/acsDrupal SLS URL is http://mydomain.com/?q=onelogin_saml/sls

Configuring Drupal

Perform the following steps to configure SAML in Drupal.

Download the zip file from the link at the bottom of this article.

Go to Modules,click Install New Module and upload the file.

Activate the module.

Click the Configure link for OneLogin SAML in the Operations column.

In the Certificate field, paste in the X.509 certificate from your OneLogin account.

In the SAML Login URL field, enter the SAML Login URL from the Drupal app you configured in OneLogin.

Provide Attribute mappings.

Make sure you give administration rights to the Configure SAML Authentication option in Drupal permissions.

By default, OneLogin will sign users in using their email address, but you can override this per user.