Revision: 1917 Author: olavmrk Date: Tue Oct 27 00:19:57 2009 Log: SimpleSAML_Auth_Simple: Add restart URL when initializing login.
This adds a restart URL that should handle bookmarked discovery service page. Merged into 1.5 branch from r1915. http://code.google.com/p/simplesamlphp/source/detail?r=1917 Modified: /branches/simplesamlphp-1.5/lib/SimpleSAML/Auth/Simple.php ======================================= --- /branches/simplesamlphp-1.5/lib/SimpleSAML/Auth/Simple.php Fri Oct 16 04:04:44 2009 +++ /branches/simplesamlphp-1.5/lib/SimpleSAML/Auth/Simple.php Tue Oct 27 00:19:57 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 -~----------~----~----~----~------~----~------~--~---
