DX: Allow devs to alter loading existing accounts

Created on 4 May 2023, about 1 year ago
Updated 26 May 2023, about 1 year ago

Problem/Motivation

Currently, when authenticating through OIDC, existing users are loaded by email (hardcoded). Some devs might want to hook into that process and load the existing users by username, or the value of a Drupal field of that user, or a combination of properties (mail and role for example). Currently that is not possible without overwriting the entire controller.

Steps to reproduce

N/A

Proposed resolution

Allow devs to hook into the process by firing an event and having a default event handler with a low priority.

Remaining tasks

Implementation/review.

User interface changes

N/A

API changes

New event will be introduced, event dispatcher will be injected in the controller.

Data model changes

N/A

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Jelle_S Antwerp, Belgium

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

Comments & Activities

Production build 0.69.0 2024