evalstate HF Staff commited on
Commit
2ac2aee
·
verified ·
1 Parent(s): 94db581

Move OAuth config to Space vars and secret

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -5
  2. README.md +9 -0
Dockerfile CHANGED
@@ -9,11 +9,6 @@ RUN apt-get update && \
9
 
10
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
11
 
12
- ENV FAST_AGENT_SERVE_OAUTH=hf \
13
- FAST_AGENT_OAUTH_SCOPES=inference-api \
14
- FAST_AGENT_OAUTH_RESOURCE_URL=https://evalstate-hf-hub-query.hf.space \
15
- HF_TOKEN=hf_dummy
16
-
17
  WORKDIR /app
18
 
19
  COPY wheels /tmp/wheels
 
9
 
10
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
11
 
 
 
 
 
 
12
  WORKDIR /app
13
 
14
  COPY wheels /tmp/wheels
README.md CHANGED
@@ -20,6 +20,15 @@ This Space is configured for Hugging Face OAuth/token passthrough:
20
  - `FAST_AGENT_OAUTH_SCOPES=inference-api`
21
  - `--instance-scope request`
22
 
 
 
 
 
 
 
 
 
 
23
  Clients can either:
24
  - send `Authorization: Bearer <HF_TOKEN>` directly, or
25
  - use MCP OAuth discovery/auth flow
 
20
  - `FAST_AGENT_OAUTH_SCOPES=inference-api`
21
  - `--instance-scope request`
22
 
23
+ These are configured as Space settings:
24
+
25
+ - Variables:
26
+ - `FAST_AGENT_SERVE_OAUTH`
27
+ - `FAST_AGENT_OAUTH_SCOPES`
28
+ - `FAST_AGENT_OAUTH_RESOURCE_URL`
29
+ - Secret:
30
+ - `HF_TOKEN` (dummy startup token)
31
+
32
  Clients can either:
33
  - send `Authorization: Bearer <HF_TOKEN>` directly, or
34
  - use MCP OAuth discovery/auth flow