From 5747b7add6de262569092294b43441da2a2ff4bb Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 22 Jan 2024 00:05:06 +0100 Subject: [PATCH] Version bump for #1400 --- plugins/proxy-auth/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/proxy-auth/index.php b/plugins/proxy-auth/index.php index a69dd23de5..5a6fc12273 100644 --- a/plugins/proxy-auth/index.php +++ b/plugins/proxy-auth/index.php @@ -6,8 +6,8 @@ class ProxyAuthPlugin extends \RainLoop\Plugins\AbstractPlugin NAME = 'Proxy Auth', AUTHOR = 'Philipp', URL = 'https://www.mundhenk.org/', - VERSION = '0.1', - RELEASE = '2023-01-14', + VERSION = '0.2', + RELEASE = '2024-01-22', REQUIRED = '2.27.0', CATEGORY = 'Login', LICENSE = 'MIT', @@ -49,10 +49,10 @@ public function MapEmailAddress(string &$sEmail, string &$sLogin, string &$sPass $sLevel = LOG_DEBUG; $sMsg = "sEmail= " . $sEmail; $oLogger->Write($sMsg, $sLevel, $sPrefix); - + $sMasterUser = \trim($this->Config()->getDecrypted('plugin', 'master_user', '')); $sMasterSeparator = \trim($this->Config()->getDecrypted('plugin', 'master_separator', '')); - + /* remove superuser from email for proper UI */ if (static::$login) { $sEmail = str_replace($sMasterUser, "", $sEmail); @@ -86,7 +86,7 @@ public function ServiceProxyAuth() : bool $sProxyCheck = $this->Config()->getDecrypted('plugin', 'proxy_check', ''); $sClientIPs = $this->Manager()->Actions()->Http()->GetClientIP(true); - + /* make sure that remote user is only set by authorized proxy to avoid security risks */ if ($sProxyCheck) { $sProxyRequest = false; @@ -103,7 +103,7 @@ public function ServiceProxyAuth() : bool $sProxyRequest = true; } } - } else { + } else { $sMsg = "checking client IP: " . $sClientIPs; $oLogger->Write($sMsg, $sLevel, $sPrefix); @@ -114,7 +114,7 @@ public function ServiceProxyAuth() : bool } else { $sProxyRequest = true; } - + if ($sProxyRequest) { /* create master user login from remote user header and settings */ $sEmail = $sRemoteUser . $sMasterSeparator . $sMasterUser;