Search Results :

×

SAML Single Sign On (SSO) into Drupal using Salesforce as IDP


Drupal SAML Salesforce SSO (Single Sign On) setup will allow the users to login to your Drupal site using their Salesforce credentials. Drupal SAML SP module gives you the ability to enable SAML Single Sign On for Drupal. This module is compatible with all SAML Identity Providers (IDPs). We provide the Drupal SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider module, which is compatible with Drupal 7, Drupal 8, Drupal 9, as well as Drupal 10. The guide will walk you through the steps to configure SAML SSO between Drupal and Salesforce IDP. By the end of this guide, users from your Identity Provider should be able to login to the Drupal site.

If you have any queries or if you need any sort of assistance in configuring the module, you can contact us at drupalsupport@xecurify.com. We can also schedule an online meeting to help you configure the Drupal SAML SP 2.0 Single Sign On (SSO) login module.


Pre-requisite: Download and Installation 


  • Download the module:
    Composer require 'drupal/miniorange_saml'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange SAML Service Provider using the search box.
  • Enable the module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Install the module:
    drush en drupal/miniorange_saml
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the Drupal SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup

Setup Video Salesforce Suite with Drupal SAML Single Sign On

You can refer the steps to configure Salesforce with the Drupal SAML module from the video or documentation given below:

Steps to configure Salesforce SAML Single Sign On ( SSO ) Login into Drupal site

1. Drupal SAML SP Metadata

  • After installing the module, go to the Configuration tab and click on the miniOrange SAML Login Configuration module link.
  • drupal saml single sign on login Go to Congifuration tab
  • Navigate to Service Provider Metadata tab.
  • Copy the SP Entity ID/Issuer, SP ACS URL, and keep it handy. (This is required to set up Salesforce as an IDP.)
  • drupal saml single sign on login - in the service provider metadata tab, here you can find the sp metadata to configure your identity provider

2. Create SSO Application in Salesforce

  • Log in to your Salesforce account.
  • In the top right corner, click on the Settings icon. Select Setup from the drop-down.
  • drupal saml sp select setup
  • From the left section, navigate to Identity -> Identity Provider.
  • Click on Enable Identity Provider button to enable your Salesforce as Identity provider.
  • Administer menu-Salesforce SAML Single Sign-On ( SSO )
  • Click on Save button.
  • Administer menu-Salesforce SAML Single Sign-On ( SSO ) - Click on Save button
  • Click on the Download Metadata button to download the Salesforce SP Metadata. (This information is needed to configure Drupal as Service Provider.)
  • Salesforce Identity provider Setup-Salesforce SAML Single Sign-On ( SSO )
  • Now, click on Service Providers are now created via Connected Apps. Click here link, you will be redirected to the New Connected App configurations page.
  • Salesforce Identity provider Setup-Salesforce SAML Single Sign-On ( SSO )
  • Enter the following information in the Basic Information section.
    • Enter the Application name in Connected App Name text field.
    • The API Name will generate on its own
    • For the Contact Email text field, enter your current email address.
    Salesforce Identity provider Setup-Salesforce SAML Single Sign-On ( SSO )
  • Under Web App Settings section, check the Enable SAML checkbox.
  • Paste the copied SP Entity ID/Issuer and ACS URL (from Drupal) into the Entity Id and ACS URL text field, respectively.
  • drupal saml sp web app setting
    Entity ID Enter SP Entity ID / Issuer from the Serivice Provider Metadata tab of the module.
    ACS URL Enter ACS (AssertionConsumerService) URL from the Serivice Provider Metadata tab of the module.
    Subject Type Username
    Name ID Format urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
miniorange img Assign a Profile to your Salesforce Application
  • From the left navigation panel under the PLATFORM TOOLS, select Apps -> Connected Apps -> Manage Connected Apps.
  • Click on the app which you just created. For exmaple, Drupal
  • Salesforce Identity provider Setup-Salesforce SAML Single Sign-On ( SSO )
  • Scroll down to Profiles, then click on Manage Profiles button.
  • drupal saml sp manage profile
  • Select appropriate profiles to identify which users have access to this application. Click on Save button.
  • drupal saml sp assign profile
  • The profile has been successfully assigned to your application, and you will be given access to it during login.

3. Configure Drupal as Service Provider

  • Go to the Drupal site. Navigate to the Service Provider Setup tab and click on Upload IDP Metadata link.
  • In the Upload Metadata File field. Select the file that you downloaded from Salesforce. Then, click on Upload File button.
  • drupal saml sp manage profile
  • After successfully saving the configurations, click on Test link to test the connection between Drupal and Salesforce.
  • drupal saml sp Test Configuration
  • On a Test Configuration popup, if you don't have an active session in the same browser, you will be asked to sign in to Salesforce. After successfully logging into Salesforce, you will be provided with a list of attribute that's received from the Salesforce.
  • Scroll down and click on Done button.
  • Recieved Attribute list from Salesforce

Note: If you face any issues in test configuration you can reach out to us at drupalsupport@xecurify.com with the screenshot of the test configuration window.


Conclusion:

In this guide, you have successfully configured Salesforce SAML Single Sign On (Salesforce Login) choosing Salesforce as IDP and Drupal as SP using miniOrange SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider Login module. This solution ensures that you are ready to roll out secure access to your Drupal site using Salesforce login credentials within seconds.

24*7 Active Support:

If you face any issues or if you have any questions, please feel free to reach out to us at drupalsupport@xecurify.com. In case you want some additional features to be included in the module, please get in touch with us, and we can get that custom-made for you. Also, If you want, we can also schedule an online meeting to help you configure the Drupal SAML SP 2.0 Single Sign On (SSO) login module.

Free Trial:

If you would like to test out the module to ensure your business use case is fulfilled, we do provide a 7-day trial. Please drop us an email at drupalsupport@xecurify.com requesting a trial.

Additional Resources

Our Other modules:

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com