22 parent::__construct(
$config, $reserved);
25 if (array_key_exists(
'attributename',
$config))
26 $this->attributename =
$config[
'attributename'];
39 assert(array_key_exists(
'Attributes',
$request));
43 if (!array_key_exists(
'UserID',
$request)) {
44 throw new Exception(
'core:AttributeRealm: Missing UserID for this user. Please' .
45 ' check the \'userid.attribute\' option in the metadata against the' .
46 ' attributes provided by the authentication source.');
49 $decomposed = explode(
'@', $userID);
50 if (count($decomposed) !== 2)
return;
foreach($paths as $path) $request
process(&$request)
Apply filter to add or replace attributes.
if(array_key_exists('yes', $_REQUEST)) $attributes
__construct($config, $reserved)
Initialize this filter.