Skip to content
Snippets Groups Projects
Commit 652a7e39 authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_Auth_Simple: Add restart URL when initializing login.

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

Fixes issue 229.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1915 44740490-163a-0410-bde0-09ae8108e29a
parent 9b6a6e32
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,17 @@ class SimpleSAML_Auth_Simple { ...@@ -84,7 +84,17 @@ class SimpleSAML_Auth_Simple {
$returnTo = SimpleSAML_Utilities::createPostRedirectLink($returnTo, $_POST); $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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment