33                parent::__construct(
$config, $reserved);
 
   35                assert(
'is_array($config)');
 
   38                        if (
$index === 
'default') {
 
   39                                $this->isDefault = (bool)$value;
 
   40                        } elseif (is_int(
$index)) {
 
   41                                if (!is_string($value)) {
 
   43                        var_export($value, TRUE));
 
   45                                $this->allowedAttributes[] = $value;
 
   46            } elseif (is_string(
$index)) {
 
   47                if (!is_array($value)) {
 
   49                        ' must be specified in an array.');
 
   51                $this->allowedAttributes[
$index] = $value;
 
   67                if (array_key_exists(
'attributes', $request[
'Destination'])) {
 
   69                        return $request[
'Destination'][
'attributes'];
 
   71                if (array_key_exists(
'attributes', $request[
'Source'])) {
 
   73                        return $request[
'Source'][
'attributes'];
 
   88                assert(
'is_array($request)');
 
   89                assert(
'array_key_exists("Attributes", $request)');
 
   91                if ($this->isDefault) {
 
   96                } elseif (!empty($this->allowedAttributes)) {
 
  114                            ' must be specified in an array.');
 
An exception for terminatinating execution or to throw for unit testing.
static getSPIdPAllowed(array &$request)
Get list of allowed from the SP/IdP config.
__construct($config, $reserved)
$allowedAttributes
List of attributes which this filter will allow through.