backdrop-contrib / simplesamlphp_auth

Support SAML for authentication of users. The module will auto-provision user accounts and dynamically assign roles in Backdrop CMS if you want it to.
https://backdropcms.org/project/simplesamlphp_auth
GNU General Public License v2.0
2 stars 3 forks source link

SimpleSAML authenticated admin users cannot create other users #26

Closed laryn closed 1 year ago

laryn commented 1 year ago

Original Drupal issue with a patch that appears to be working well though I haven't ported the patch yet. By Rich Burke (richburke), chrisgross, Cleber Gasparoto (chgasparoto), Vitor Machado (vmachado), and Brian Osborne (bkosborne).

drupal7-simplesamlphp_auth-admin-users-cannot-other-users-9291915-11-with-early-return.patch.txt


When a user that's been authenticated through SSO tries to create other users, those users have the name & email address of the admin applied to them. This results in a DB constraint error on the user name.

laryn commented 1 year ago

PR has been submitted.

Tested the PR on a dev site by trying to create a new user after logging in via SimpleSAMLphp as an admin.

Before (duplicate entry lists admin email address):

image

After:

image