Skip to content

Commit

Permalink
Version bump for #1400
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Jan 21, 2024
1 parent dac5b10 commit 5747b7a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/proxy-auth/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -103,7 +103,7 @@ public function ServiceProxyAuth() : bool
$sProxyRequest = true;
}
}
} else {
} else {
$sMsg = "checking client IP: " . $sClientIPs;
$oLogger->Write($sMsg, $sLevel, $sPrefix);

Expand All @@ -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;
Expand Down

0 comments on commit 5747b7a

Please sign in to comment.