request->getRemoteUser(); if (! empty($username)) { $this->user = new ReverseProxyUserProvider($username); return true; } return false; } /** * Check if the user session is valid * * @access public * @return boolean */ public function isValidSession() { return $this->request->getRemoteUser() === $this->userSession->getUsername(); } /** * Get user object * * @access public * @return ReverseProxyUserProvider */ public function getUser() { return $this->user; } }