mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
Add check for remote_user variable for trusted proxy auth
If trusted proxy authentication is on, yet the proxy did not authenticate the user, then the default authentication method is used instead of returning 'Unauthorized'.
This commit is contained in:
+1
-1
@@ -283,7 +283,7 @@ static BOOL debugLeaks;
|
||||
{
|
||||
id authenticator;
|
||||
|
||||
if (trustProxyAuthentication)
|
||||
if (trustProxyAuthentication && [[context request] headerForKey: @"x-webobjects-remote-user"])
|
||||
authenticator = [SOGoProxyAuthenticator sharedSOGoProxyAuthenticator];
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user