Skip to main content

How to integrate SSO with Drupal using miniOrange Module

What is SSO 

Single Sign-On (SSO) is an authentication process during which a user is provided access to multiple applications and/or websites by employing a single set of login credentials (such as username and password). 

This prevents the necessity for the user to log in and out separately into the various applications. Single Sign-On (SSO) addresses the challenge of maintaining the credentials for every application separately, streamlining the method of signing-on without the need to re-enter the password. SSO is a crucial aspect of the many Identity and Access management (IAM) and security control solutions.

When a user signs into a service with their SSO login, an authentication token is created and stored either in their browser or in the SSO solution’s servers. Any app or website the user subsequently accesses will check with the SSO service, which then sends the user’s token to confirm their identity and provide them with access.​

Architecture

SSO architecture

Image by : Diego Pozag

 SSO Workflow

A diagram of a computer programDescription automatically generated

Image by : Manish Harsh

Workflow of SSO in Drupal

Drupal as IDP and SP

1) Drupal as a SAML SP : Allow your users to login into your Drupal site using their IDP ( Identity Provider ) Credentials.​

2) Drupal as a SAML IDP: Allow your users to login to any SAML complaint application using their Drupal site credentials.​

Guide for Drupal Single Sign On (SSO) using Drupal 9 as Identity Provider (IDP) and Service Provider (SP)

Drupal IDP Modules used for SSO

Requirements before initiating SSO in Drupal 

Configure SSO module in Drupal as IDP

Configure SSO module in Drupal as IDP
Configure SSO module in Drupal as IDP
Configure SSO module in Drupal as IDP dashboard
Identity provider metadata
Identity provider Setup tab
Drupal SAML IDP
Aditional user attributes
SAML tracer

Notes:

Configure miniOrange SP module Settings in Drupal

Configure Miniorange SP module Settings in Drupal
Service provider setup

allowedOrigins: ['https://my.idpsite.com']

IDP site service file

Testing Tools

We will use the following tool to debug our SAML request as parameters are properly being transmitted from IDP to SP or vice-versa.

We'd love to talk about your business objectives

Written by