From 355cf52046d674c696e0ac4a3152fbe19e90d090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 13 Mar 2008 07:16:19 +0000 Subject: [PATCH] Adding error message if certificate in shib13-idp-remote is missing git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@406 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XML/Shib13/AuthnResponse.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php index c8660613b..12176fe3f 100644 --- a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php +++ b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php @@ -51,6 +51,9 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse { /* Get the metadata of the issuer. */ $md = $this->metadata->getMetaData($issuer, 'shib13-idp-remote'); + if (!array_key_exists('certFingerprint', $md)) + throw new Exception('Required field [certFingerprint] in Shibboleth 1.3 IdP Remote metadata was not found for identity provider [' . $issuer . ']. Please add a fingerprint and try again. You can add a dummy fingerprint first, and then an error message will be printed with the real fingerprint.'); + /* Get fingerprint for the certificate of the issuer. */ $issuerFingerprint = $md['certFingerprint']; -- GitLab