diff --git a/library/Icinga/Authentication/Auth.php b/library/Icinga/Authentication/Auth.php index 8ff11b091..9b1360a60 100644 --- a/library/Icinga/Authentication/Auth.php +++ b/library/Icinga/Authentication/Auth.php @@ -87,14 +87,13 @@ class Auth */ public function isAuthenticated($ignoreSession = false) { - if ($this->user === null - && ! $this->authHttp() - && ! $this->authExternal() - && ! $ignoreSession - ) { + if ($this->user === null && ! $ignoreSession) { $this->authenticateFromSession(); } - return $this->user !== null; + if ($this->user === null && ! $this->authExternal()) { + return $this->authHttp(); + } + return true; } public function setAuthenticated(User $user, $persist = true)