Skip to content

Commit

Permalink
Fix invalid requested attributes in attribute query
Browse files Browse the repository at this point in the history
  • Loading branch information
shingo78 committed Jan 9, 2020
1 parent 1f3d9d7 commit e869cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Auth/Process/attributeaggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ private function getRequestedAttributes() {
if(array_key_exists('*',$requestedAttributes)) {
unset($requestedAttributes['*']);
}
foreach ($requestedAttributes as $attribute) {
foreach ($requestedAttributes as $attribute => $values) {
/* Reasons for NOT including the acceptable values in the request:
* - the SP might not want to let the AA know which values it accepts,
* - we can't rely on that the AA sends the matching values anyway,
* - in the future we might support regexp in the values array.
*/
$requestedAttribute[$attribute] = array();
$requestedAttributes[$attribute] = array();
}
return $requestedAttributes;
}
Expand Down

0 comments on commit e869cae

Please sign in to comment.