Revision: 1915
Author: olavmrk
Date: Mon Oct 26 08:14:28 2009
Log: SimpleSAML_Auth_Simple: Add restart URL when initializing login.

This adds a restart URL that should handle bookmarked discovery service  
page.

Fixes issue 229.
http://code.google.com/p/simplesamlphp/source/detail?r=1915

Modified:
  /trunk/lib/SimpleSAML/Auth/Simple.php

=======================================
--- /trunk/lib/SimpleSAML/Auth/Simple.php       Fri Oct 16 04:04:44 2009
+++ /trunk/lib/SimpleSAML/Auth/Simple.php       Mon Oct 26 08:14:28 2009
@@ -84,7 +84,17 @@
                        $returnTo = 
SimpleSAML_Utilities::createPostRedirectLink($returnTo,  
$_POST);
                }

-               SimpleSAML_Auth_Default::initLogin($this->authSource, 
$returnTo);
+               /*
+                * An URL to restart the authentication, in case the user 
bookmarks
+                * something, e.g. the discovery service page.
+                */
+               $restartURL = $this->getLoginURL($returnTo);
+
+               $hints = array(
+                       SimpleSAML_Auth_State::RESTART => $restartURL,
+               );
+
+               SimpleSAML_Auth_Default::initLogin($this->authSource, 
$returnTo, NULL,  
$hints);
        }



--~--~---------~--~----~------------~-------~--~----~
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