/** * Display the HTTP auth form for username and password * @param IResponse $response */ public function sendAuthRequest(IResponse $response) { $response->setStatus(IHttpStatus::HTTP_UNAUTHORIZED); $response->addHeader('WWW-Authenticate', 'Basic realm="Please provide your username and password"'); $response->flush(); exit; }