Skip to content

Commit d0a6c7e

Browse files
committed
SAML2_SOAPClient: Don't throw exception when https key isn't included in metadata.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2766 44740490-163a-0410-bde0-09ae8108e29a
1 parent af1165a commit d0a6c7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/SAML2/SOAPClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ public static function validateSSL($data, XMLSecurityKey $key) {
189189
}
190190

191191
if ($keyInfo['key'] !== $data) {
192-
throw new Exception('Key on SSL connection did not match key we validated against.');
192+
SimpleSAML_Logger::debug('Key on SSL connection did not match key we validated against.');
193+
return FALSE;
193194
}
194195

195196
SimpleSAML_Logger::debug('Message validated based on SSL certificate.');

0 commit comments

Comments
 (0)