Guide for Drupal Single Sign On (SSO) using AuthAnvil as Identity Provider (IdP)

AuthAnvil Single Sign On (SSO) for Drupal miniOrange provides a ready to use solution for Drupal. This solution ensures that you are ready to roll out secure access to your Drupal site using AuthAnvil within minutes.

Step 1: Setup AuthAnvil as Identity Provider

    Drupal AuthAnvil sso icon Prerequisites: Copy these values from the Service Provider Info tab of the SAML plugin.

    • SP Entity ID
    • ACS URL
    Drupal AuthAnvil sso icon-1 Instructions:

    • Login to Authanvil and Go to SSO Management +(add icon) Create New Application Custom Application.

      Drupal AuthAnvil sso login
    • Enter the Application Name

      Drupal AuthAnvil sso application
    • Go to Protocol Setup and Enter following info:

      Protocol Setup SP-INIT
      Assertion Consumer Service URL ACS URL copied from the plugin
      Allow Multiple Audiences Unchecked
      Audience URI SP Entity ID copied from the plugin
      Service Entity ID SP Entity ID copied from the plugin

      Drupal AuthAnvil sso protocol setup
    • Enter Advanced Setting

      Include All Audience URIs Checked
      Sign Token Response Checked
      Sign Assertion Unchecked
      Signing Algorithm SHA1

      Drupal AuthAnvil sso advance settings
    • Go to Attribute Transformation Tab and select Specify Custom Attribute Transformation. Add the NameID attribute and click on Add. Then add the name attribute as given in the image.

      Drupal AuthAnvil sso attribute transformation
      Drupal AuthAnvil sso attribute NameID
    • Go to Permission tab and add Groups to which you want to give access to this application.

      Drupal AuthAnvil sso application
    • Click on Add Application and then Save Changes.
    • Open the app. Click on View Federation Metadata in Protocol Setup Tab and save the generated metadata xml file. This metadata file will be required to configure the plugin.

      Drupal AuthAnvil sso metadata xml

Step 2: Configuring Drupal as Service Provider (SP)

  • In miniOrange SAML Module, go to Service Provider Setup tab. There are three ways to configure the Module:
    • Drupal AuthAnvil sso app-registration By AuthAnvil Metadata URL :

      • Click on Upload IDP Metadata.
      • Enter Metadata URL and click on Fetch Metadata.

      Drupal AuthAnvil sso app-registration icon By Uploading AuthAnvil Metadata File:

      • Click on Upload IDP Metadata.
      • Upload metadata file and click on Upload.

      Drupal AuthAnvil sso app-registration1 Manual Configuration :

      • Copy SAML Entity ID, SAML Single-Sign-On Endpoint URL and X.509 certificate from Federation Metadata document and paste it in IdP Entity ID or Issuer, SAML Login URL, X.509 Certificate fields respectively in the Module.
      Identity Provider Name For Example:AuthAnvil
      IdP Entity ID or Issuer SAML Entity ID in the Federation Metadata document
      SAML Login URL SAML Single-Sign-On Endpoint URL in the Federation Metadata document
      X.509 Certificate x.509 Certificate in the Federation Metadata document

Step 3: Attribute Mapping (It is Optional to fill this.) This is Premium feature.

  • Attributes are user details that are stored in your Identity Provider.
  • Attribute Mapping helps you to get user attributes from your Identity Provider (IdP) and map them to Drupal user attributes like firstname, lastname etc.
  • While auto registering the users in your Drupal site these attributes will automatically get mapped to your Drupal user details.
  • In miniOrange SAML Module, go to Mapping tab and fill in all the fields.
    Username: Name of the username attribute from IdP (Keep NameID by default)
    Email: Name of the email attribute from IdP (Keep NameID by default)
    Group/Role Key: Name of the Role attribute from Identity Provider (IdP)
  • Drupal AuthAnvil sso attribute mapping
  • You can check the Test Configuration Results under Service Provider Setup tab to get a better idea of which values to map here.

Step 4: Role mapping. (It is Optional to fill this.) This is Premium feature.

  • Drupal uses a concept of Roles, designed to give the site owner the ability to control what users can and cannot do within the site.
  • Role mapping helps you to assign specific roles to users of a certain group in your Identity Provider (IdP).
  • While auto registering, the users are assigned roles based on the group they are mapped to.
  • Drupal AuthAnvil ssorole mapping

Step 5: Sign In Setting. This is Premium feature.

  • Go to SIGNIN Settings tab. There are multiple features availabe in this tab like Protect your whole site, Auto redirect the user to Identity Provider,auto-create user and Backdoor Login. To use these features, click on the respective checkboxes.
  • Drupal AuthAnvil sso sign in settings

Free Trial

If you don't find what you are looking for, please contact us at info@xecurify.com or call us at +1 978 658 9387.