principalPrefix = 'principals/system/'; // setup realm $defaults = new Defaults(); $this->realm = $defaults->getName(); } /** * Validates a username and password * * This method should return true or false depending on if login * succeeded. * * @param string $username * @param string $password * @return bool */ protected function validateUserPass($username, $password) { return $this->db->auth($username, $password); } /** * @inheritdoc */ public function challenge(RequestInterface $request, ResponseInterface $response) { } }