22        parent::__construct(
$config, $reserved);
 
   23        assert(
'is_array($config)');
 
   25        if (array_key_exists(
'attributename', 
$config))
 
   26            $this->attributename = 
$config[
'attributename'];
 
   38        assert(
'is_array($request)');
 
   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.');
 
   48        $userID = $request[
'UserID'];
 
   49        $decomposed = explode(
'@', $userID);
 
   50        if (count($decomposed) !== 2) 
return;
 
An exception for terminatinating execution or to throw for unit testing.
process(&$request)
Apply filter to add or replace attributes.
__construct($config, $reserved)
Initialize this filter.