diff --git a/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php b/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php index 3d9f26cf3ad4c369fec92c004c7c301c8f843999..69745a82024a1af1f4337fcc1548dd96cb8bc34e 100644 --- a/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php +++ b/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php @@ -60,7 +60,7 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO // check if user is already authenticated and if not, authenticate them if (!$this->as->isAuthenticated()) { - $this->as->requireAuth(['ReturnTo' => $this->getReturnToURL()]); + $this->as->requireAuth(); } $this->userdata = []; @@ -98,19 +98,4 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO $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; - } }