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,7 +147,9 @@ abstract class SAML2_Message implements SAML2_SignedElement { ...@@ -147,7 +147,9 @@ abstract class SAML2_Message implements SAML2_SignedElement {
/* Validate the signature element of the message. */ /* Validate the signature element of the message. */
try {
$sig = SAML2_Utils::validateElement($xml); $sig = SAML2_Utils::validateElement($xml);
if ($sig !== FALSE) { if ($sig !== FALSE) {
$this->certificates = $sig['Certificates']; $this->certificates = $sig['Certificates'];
$this->validators[] = array( $this->validators[] = array(
...@@ -156,6 +158,10 @@ abstract class SAML2_Message implements SAML2_SignedElement { ...@@ -156,6 +158,10 @@ abstract class SAML2_Message implements SAML2_SignedElement {
); );
} }
} catch (Exception $e) {
/* Ignore signature validation errors. */
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment