If an email exists in Drupal Simple SAML should use that user since emails are unique, however Simple SAML creates a new user since existing users have no authmap entry and the username is different.

This is related to the attached issue, however for a different version.

Patch incoming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nicxvan created an issue. See original summary.

nicxvan’s picture

Checks for account by email if not found by username.

roi’s picture

Enabling email is good but not the only field by which we should use SAML. In my site there's a need to retrieve some very specific substring from the SAML auth and look for it on one of the existing user's fields. My patch allows other modules to do that, and it also lets you use email, of course.