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

SAML2: Ignore signature validation exceptions.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1624 44740490-163a-0410-bde0-09ae8108e29a
parent 5d4d7a9d
No related branches found
No related tags found
No related merge requests found
......@@ -147,13 +147,19 @@ abstract class SAML2_Message implements SAML2_SignedElement {
/* Validate the signature element of the message. */
$sig = SAML2_Utils::validateElement($xml);
if ($sig !== FALSE) {
$this->certificates = $sig['Certificates'];
$this->validators[] = array(
'Function' => array('SAML2_Utils', 'validateSignature'),
'Data' => $sig,
);
try {
$sig = SAML2_Utils::validateElement($xml);
if ($sig !== FALSE) {
$this->certificates = $sig['Certificates'];
$this->validators[] = array(
'Function' => array('SAML2_Utils', 'validateSignature'),
'Data' => $sig,
);
}
} catch (Exception $e) {
/* Ignore signature validation errors. */
}
}
......
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