Skip to content
Snippets Groups Projects
Commit f92d24a5 authored by René Češka's avatar René Češka
Browse files

removed ReturnTo

removed ReturnTo to make plugin be able to login from all of the pages
in Stud.IP
parent 18a9ed73
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO ...@@ -60,7 +60,7 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO
// check if user is already authenticated and if not, authenticate them // check if user is already authenticated and if not, authenticate them
if (!$this->as->isAuthenticated()) { if (!$this->as->isAuthenticated()) {
$this->as->requireAuth(['ReturnTo' => $this->getReturnToURL()]); $this->as->requireAuth();
} }
$this->userdata = []; $this->userdata = [];
...@@ -98,19 +98,4 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO ...@@ -98,19 +98,4 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO
$auth->Logout(); $auth->Logout();
} }
/**
* Returns the required return to url
*/
public function getReturnToURL(): string
{
$old_base = URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']);
$return_to_url = URLHelper::getURL('dispatch.php/start', [
'again' => 'yes',
'cancel_login' => 1,
'sso' => $this->plugin_name,
]);
URLHelper::setBaseURL($old_base);
return $return_to_url;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment