From 56b642147f31c22f9e0826443ef52ddbac1a606d Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 26 Oct 2009 15:14:38 +0000 Subject: [PATCH] core/authenticate.php: Add restart URL. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1916 44740490-163a-0410-bde0-09ae8108e29a --- modules/core/www/authenticate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/core/www/authenticate.php b/modules/core/www/authenticate.php index 31ed34ba1..2cc6b84f6 100644 --- a/modules/core/www/authenticate.php +++ b/modules/core/www/authenticate.php @@ -36,7 +36,11 @@ if(!array_key_exists('as', $_REQUEST)) { $as = $_REQUEST['as']; if (!$session->isValid($as)) { - SimpleSAML_Auth_Default::initLogin($as, SimpleSAML_Utilities::selfURL(), SimpleSAML_Utilities::selfURL()); + $url = SimpleSAML_Utilities::selfURL(); + $hints = array( + SimpleSAML_Auth_State::RESTART => $url, + ); + SimpleSAML_Auth_Default::initLogin($as, $url, $url, $hints); } $attributes = $session->getAttributes(); -- GitLab