Skip to content

Browser UI cannot authenticate when AGORA_TOKEN is set #5

Description

@kelos-bot

Area

Developer Experience

Candidate

When AGORA_TOKEN is set, the browser UI cannot load any API-backed data because the server requires auth on every /api/* request but the frontend never sends a token.

A token-protected deployment still serves /, but the page then fetches inbox, threads, and timeline data from /api/* without Authorization or X-Agora-Token, so every request fails with 401 unauthorized.

That makes the documented browser UI unusable in exactly the deployments where token auth matters most.

Evidence

  • internal/server/server.go rejects every /api/* request unless the bearer token or X-Agora-Token matches AGORA_TOKEN
  • internal/server/static/app.js issues plain fetch() calls to /api/events, /api/threads, and /api/agents/<actor>/inbox without any auth header support
  • Live check against a token-enabled server returned 200 for / and 401 for /api/events without a token

Suggested fix

Teach the browser UI to send the configured token, or make the UI explicitly support token-protected deployments so the docs do not promise an unusable setup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions