public function authenticate(string $auth)
    {
        if ($this->router === null) {
            return;
        }

        try {
            $response = $this->router->authenticate($auth, 'Basic');
            if (!($response instanceof Response)) {
                $response = new Response;
                $response->status = HttpResponse::HTTP_NO_CONTENT;
            }
            $response->output();
        } catch (RouterException $e) {
            $e->getResponse()->output();
        }
    }