Skip to content
Snippets Groups Projects
Commit 665c364c authored by Olav Morken's avatar Olav Morken
Browse files

saml:AuthnContextClassRef: Add missing code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2834 44740490-163a-0410-bde0-09ae8108e29a
parent a51dd55e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,20 @@ class sspmod_saml_Auth_Process_AuthnContextClassRef extends SimpleSAML_Auth_Proc ...@@ -29,7 +29,20 @@ class sspmod_saml_Auth_Process_AuthnContextClassRef extends SimpleSAML_Auth_Proc
if (!isset($config['AuthnContextClassRef'])) { if (!isset($config['AuthnContextClassRef'])) {
throw new SimpleSAML_Error_Exception('Missing AuthnContextClassRef option in processing filter.'); throw new SimpleSAML_Error_Exception('Missing AuthnContextClassRef option in processing filter.');
} }
$this->authnContextClassRef = (string)$config['AuthnContextClassRef'];
} }
} /**
\ No newline at end of file * Set the AuthnContextClassRef in the SAML 2 response.
*
* @param array &$state The state array for this request.
*/
public function process(&$state) {
assert('is_array($state)');
$state['saml:AuthnContextClassRef'] = $this->authnContextClassRef;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment