diff --git a/application/Espo/Core/Utils/Api/Auth.php b/application/Espo/Core/Utils/Api/Auth.php index bb4e66c4e5..b49011b454 100644 --- a/application/Espo/Core/Utils/Api/Auth.php +++ b/application/Espo/Core/Utils/Api/Auth.php @@ -55,7 +55,10 @@ class Auth extends \Slim\Middleware } $espoCgiAuth = $req->headers('HTTP_ESPO_CGI_AUTH'); - if ( !isset($authUsername) && !isset($authPassword) && !empty($espoCgiAuth) ) { + if (empty($espoCgiAuth)) { + $espoCgiAuth = $req->headers('REDIRECT_HTTP_ESPO_CGI_AUTH'); + } + if (!isset($authUsername) && !isset($authPassword) && !empty($espoCgiAuth)) { list($authUsername, $authPassword) = explode(':' , base64_decode(substr($espoCgiAuth, 6))); }