ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AuthnContextClassRef.php
Go to the documentation of this file.
1 <?php
2 
3 
10 {
11 
18 
19 
28  public function __construct($config, $reserved)
29  {
30  parent::__construct($config, $reserved);
31  assert(is_array($config));
32 
33  if (!isset($config['AuthnContextClassRef'])) {
34  throw new SimpleSAML_Error_Exception('Missing AuthnContextClassRef option in processing filter.');
35  }
36 
37  $this->authnContextClassRef = (string) $config['AuthnContextClassRef'];
38  }
39 
40 
46  public function process(&$state)
47  {
48  assert(is_array($state));
49 
50  $state['saml:AuthnContextClassRef'] = $this->authnContextClassRef;
51  }
52 }
$config
Definition: bootstrap.php:15
process(&$state)
Set the AuthnContextClassRef in the SAML 2 response.
__construct($config, $reserved)
Initialize this filter.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10