From 095ca392a81cd1d201025ab9c380b7b937d7461a Mon Sep 17 00:00:00 2001 From: pac0san Date: Fri, 5 Apr 2019 10:17:46 +0200 Subject: [PATCH] Update TargetedID.php Just to get the last value of the $state['saml:RequesterID'] array (the list of original requester and the proxying identity providers) instead of the first one (the original requester). --- lib/Auth/Process/TargetedID.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Auth/Process/TargetedID.php b/lib/Auth/Process/TargetedID.php index a7bb88e..d9f65aa 100644 --- a/lib/Auth/Process/TargetedID.php +++ b/lib/Auth/Process/TargetedID.php @@ -187,7 +187,7 @@ private static function getValue(&$state, $options, $error) { } if (!empty($data)) { $data= (array) $data; // if value is string => insert into a new array - $value= $data[0]; // first value selected + $value = array_values(array_slice($data, -1))[0]; // last value selected break; } }