Allowing multiple IDPs

Created on 13 September 2023, over 1 year ago
Updated 15 April 2024, 8 months ago

Problem/Motivation

Some websites require to support multiple IDPs, which is currently not supported by the module.

Steps to reproduce

  1. Navigate to /admin/config/people/simplesamlphp_auth
  2. Enter multiple sources, separated by commas, into the "Authentication source for this SP" field
  3. Save the form

When you attempt to use the SSO functionality, it would fail with a fatal error.

Proposed resolution

We can easily check for the field value and, if we identify a comma-separated value, we can explode it and attempt to authenticate the expected IDP.
It can be achieved by supplying a comma-separated list of IDPs into the existing configuration field, so no form or module configuration change is required.

Remaining tasks

1. Validate the use case
2. Validate and test the patch

User interface changes

No

API changes

No

Data model changes

No

Patch status

The attached patch file was tested across Drupal 9.4.x and 9.5.x and runs on PHP 7.4 and up.

Feature request
Status

Active

Version

3.3

Component

Code

Created by

🇦🇺Australia ivrh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024