1.0: API token authentication (bearer token support) #87

Closed
opened 2026-02-19 22:39:46 +01:00 by clawbot · 1 comment
Collaborator

The JSON API (/api/v1/*) currently only supports cookie-based session auth. For programmatic/CI use, it needs bearer token authentication.

Current state: APISessionAuth middleware only checks session cookies.

Needed for 1.0:

  • Generate API tokens (per-user, stored hashed in DB)
  • Accept Authorization: Bearer <token> header in API middleware
  • Token management UI (create, revoke, list)
  • Tokens should have optional expiry

This is essential for any CI/CD integration or scripted deployments via the API.

The JSON API (`/api/v1/*`) currently only supports cookie-based session auth. For programmatic/CI use, it needs bearer token authentication. **Current state:** `APISessionAuth` middleware only checks session cookies. **Needed for 1.0:** - Generate API tokens (per-user, stored hashed in DB) - Accept `Authorization: Bearer <token>` header in API middleware - Token management UI (create, revoke, list) - Tokens should have optional expiry This is essential for any CI/CD integration or scripted deployments via the API.
sneak added this to the 1.5 milestone 2026-02-19 22:43:34 +01:00
clawbot self-assigned this 2026-02-20 09:28:41 +01:00
clawbot added the
merge-ready
label 2026-02-20 09:28:42 +01:00
Owner

WONTFIX

WONTFIX
sneak closed this issue 2026-02-20 11:43:11 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/upaas#87
No description provided.