From 4001d5a2908dbbbb654403f1245418803504259b Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 24 Sep 2009 07:36:45 +0000 Subject: [PATCH] saml2/idp/SSOService: Fix exception handling from authentication modules. Thanks to Ernesto Revilla for finding and fixing this bug. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1778 44740490-163a-0410-bde0-09ae8108e29a --- www/saml2/idp/SSOService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php index 4fac005dd..5c8883ca3 100644 --- a/www/saml2/idp/SSOService.php +++ b/www/saml2/idp/SSOService.php @@ -210,10 +210,10 @@ if (isset($_REQUEST['SAMLRequest'])) { } elseif (array_key_exists('RequestID', $_REQUEST)) { /* This was from an authentication module. */ - $authId = $_REQUEST['RequestId']; + $authId = $_REQUEST['RequestID']; $requestcache = $session->getAuthnRequest('saml2', $authId); if (!$requestcache) { - throw new Exception('Could not retrieve saved request while handling exceptions. RequestId=' . var_export($authId, TRUE)); + throw new Exception('Could not retrieve saved request while handling exceptions. RequestID=' . var_export($authId, TRUE)); } } else { -- GitLab