salvamomo / drupalauth

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

User fields of type "List (text)" are not passed through authentication. Patch attached. #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i'm using Drupal 7.22 under Linux, Drupalauth version 1.2.1_1x_7x 

I successfully configured the authentication, and custom text fields are passed 
correctly to the SP application, but turns out that if i define a field of type 
"List (text)" in Drupal the field isn't passed trough the authentication.

I've been working at the file External.php around line 266
Seem that the key 'safe_value' is not in the dictionary 
'$userAttrs[$userKey]['und'][0]' but there is a key 'value' instead.

I attach a patch for drupalauth/lib/Auth/Source/External.php . 

Original issue reported on code.google.com by gabriele...@tyto.it on 18 Aug 2013 at 2:47

Attachments:

GoogleCodeExporter commented 9 years ago
I ran into the same issue and took a slightly different approach. Patch 
attached.

Original comment by jus...@grovestreetstudios.com on 6 Sep 2013 at 6:50

Attachments:

GoogleCodeExporter commented 9 years ago
There is a typo in patch.txt (patch #1): the first occurrence of 

array($valueArray['value']);

should be this:

array($valueArray['safe_value']);

Original comment by peter.ha...@gmail.com on 25 Feb 2015 at 7:15