Handle case of only email before @ returned. And match email via user_load_by_mail, not custom SQL.

Created on 26 January 2023, over 1 year ago
Updated 7 July 2023, 12 months ago

Problem/Motivation

  1. Some SAML setups and Drupal 7 setups cannot pull the full email from the SAML provider and only pull the email name before the '@'.
  2. To get the User / UID, the SQL provided in saml_sp_drupal_login.module does not work with all situations in Drupal 7.

Proposed resolution

  1. Modify logic that gets nameID for the email case.
  2. Just use the function user_load_by_mail instead of the SQL, that while should do the same thing, will not always in certain configurations. https://api.drupal.org/api/drupal/modules!user!user.module/function/user...

Patch will be provided.

✨ Feature request
Status

Downport

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States darrell_ulm

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

Comments & Activities

Production build 0.69.0 2024