Revision: 2273
Author: olavmrk
Date: Wed Apr 28 01:16:04 2010
Log: IdP: Slight refactoring of resumeauth.php
http://code.google.com/p/simplesamlphp/source/detail?r=2273

Modified:
 /trunk/modules/core/www/idp/resumeauth.php

=======================================
--- /trunk/modules/core/www/idp/resumeauth.php  Tue Jan  5 02:18:56 2010
+++ /trunk/modules/core/www/idp/resumeauth.php  Wed Apr 28 01:16:04 2010
@@ -1,15 +1,14 @@
 <?php

-if (isset($_REQUEST['RequestID'])) {
-       /* Backwards-compatibility with old authentication pages. */
-       $session = SimpleSAML_Session::getInstance();
- $requestcache = $session->getAuthnRequest('saml2', (string)$_REQUEST['RequestID']);
-       if (!$requestcache) {
-               throw new Exception('Could not retrieve cached RequestID = ' . 
$authId);
-       }
-       $state = $requestcache['State'];
-       SimpleSAML_IdP::postAuth($state);
-
-} else {
+if (!isset($_REQUEST['RequestID'])) {
        throw new SimpleSAML_Error_BadRequest('Missing required URL 
parameter.');
 }
+
+/* Backwards-compatibility with old authentication pages. */
+$session = SimpleSAML_Session::getInstance();
+$requestcache = $session->getAuthnRequest('saml2', (string)$_REQUEST['RequestID']);
+if (!$requestcache) {
+       throw new Exception('Could not retrieve cached RequestID = ' . $authId);
+}
+$state = $requestcache['State'];
+SimpleSAML_IdP::postAuth($state);

--
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.

Reply via email to