salvamomo / drupalauth

Automatically exported from code.google.com/p/drupalauth
0 stars 0 forks source link

Support using user fields multiple times for different SAML attributes #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
You currently are unable to use the same user field for multiple SAML 
attributes. If you do this then only the last SAML attribute will be set. This 
occurs because of the array handling in the loop on line 239 of 
lib/auth/source/External.php.

The use case of this is passing the user email field as the email attribute and 
the username attribute for Salesforce, which wants an email for the username 
field.

Patch attached.

Original issue reported on code.google.com by jus...@grovestreetstudios.com on 6 Sep 2013 at 7:15