def METHOD_NAME():
    with temp_conf({"port": 5556, "auth": {"cls": "intake.auth.secret.SecretAuth", "kwargs": {"secret": "test"}}}) as fn:
        env = os.environ.copy()
        env["INTAKE_CONF_FILE"] = fn
        with server(env=env, wait=5556):
            # raw request
            r = requests.get("http://localhost:5556/v1/info")
            assert r.status_code == 403
            r = requests.get("http://localhost:5556/v1/info", headers={"intake-secret": "test"})
            assert r.ok
            # with cat
            with pytest.raises(Exception):
                intake.open_catalog("intake://localhost:5556")
            cat = intake.open_catalog("intake://localhost:5556", storage_options={"headers": {"intake-secret": "test"}})
            assert "entry1" in cat