Problem/Motivation
If a user is not saved in the database they can not be added to a group.
I confirmed the user is not saved when userSync is ran with a new user and that the
group module throws an exception since the user is not saved yet.
Steps to reproduce
Visit the /saml/login page with a new user account and confirm they are not initially added to their groups.
Proposed resolution
Move the logic to sync the users to a service. Then use a state variable to mark the user as needing to be processed.
Then we can check for the state variable on the user insert hook and call the service to sync the user there.
Making sure that the code to sync the user is called only after the user is in the database.
Remaining tasks
Creating MR.
Issue fork samlauth_group-3537458
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sstapleton commentedComment #5
minoroffense commentedComment #7
minoroffense commented