cannot exclude <front> for SSO due to invalid config lookup

Created on 5 June 2025, about 1 month ago

Problem/Motivation

attempts to add "<front>" to the SSO-excluded sites (as documented) fail with the error:

Error TypeError: mb_strtolower(): Argument #1 ($string) must be of type string, null given in mb_strtolower() (line 217 of [...]/ldap_sso/src/LdapSsoBootSubscriber.php).

The null variable can be traced to an attempt to find the address of the front page.

Steps to reproduce

(On any standard Drupal 10.2+ and presumably 11.x installation)

1. Add "<front>" to the SSO excluded sites configuration list.
2. Visit the Drupal front page while logged out from SSO.

Proposed resolution

The config variable referenced on line 111 of the LdapSsoBootSubscriber (https://git.drupalcode.org/project/ldap_sso/-/blob/8.x-4.x/src/LdapSsoBo...) is wrong. It should be page.front, not front-page.

(meta-note: apologies for lack of merge request, I am not permitted to fork the repository within Drupal's gitlab).

πŸ› Bug report
Status

Active

Version

4.2

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024