From 18a9ed73a39d715735e35744c28b9dc03ade8b98 Mon Sep 17 00:00:00 2001
From: nod3zer0 <game1men@gmail.com>
Date: Thu, 29 Aug 2024 18:52:10 +0200
Subject: [PATCH] fix - removed reverse proxy url

---
 config/config_defaults.inc.php                       | 1 -
 lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php | 5 +----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/config/config_defaults.inc.php b/config/config_defaults.inc.php
index 4a421f7fa55..d22e57f885c 100644
--- a/config/config_defaults.inc.php
+++ b/config/config_defaults.inc.php
@@ -327,7 +327,6 @@ $STUDIP_AUTH_CONFIG_OAUTH2 = [
 ];
 
 $STUDIP_AUTH_CONFIG_SIMPLESAMLPHP = [
-    'reverse_proxy_url' => '',
     'sp_name'           => 'default-sp',
     'user_data_mapping' => [
         'auth_user_md5.Email'    => ['callback' => 'getUserData', 'map_args' => 'email'],
diff --git a/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php b/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php
index 163465b311b..3d9f26cf3ad 100644
--- a/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php
+++ b/lib/classes/auth_plugins/StudipAuthSimpleSamlPHP.php
@@ -10,9 +10,6 @@
  */
 class StudipAuthSimpleSamlPHP extends StudipAuthSSO
 {
-    // Reverse proxy domain
-    public ?string $reverse_proxy_url = null;
-
     // Name of the SimpleSAMLphp SP
     public string $sp_name;
 
@@ -106,7 +103,7 @@ class StudipAuthSimpleSamlPHP extends StudipAuthSSO
      */
     public function getReturnToURL(): string
     {
-        $old_base = URLHelper::setBaseURL($this->reverse_proxy_url ?: $GLOBALS['ABSOLUTE_URI_STUDIP']);
+        $old_base = URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']);
         $return_to_url = URLHelper::getURL('dispatch.php/start', [
             'again'        => 'yes',
             'cancel_login' => 1,
-- 
GitLab