clawbot
7387ba6b5c
feat: add API token authentication (closes #87)
- Add api_tokens table migration (007)
- Add APIToken model with CRUD operations
- Generate tokens with upaas_ prefix + 32 hex chars
- Store SHA-256 hash of tokens (not plaintext)
- Update APISessionAuth middleware to check Bearer tokens
- Add POST/GET/DELETE /api/v1/tokens endpoints
- Token creation returns plaintext once; list never exposes it
- Expired and revoked tokens are rejected
- Tests for creation, listing, deletion, bearer auth, revocation
2026-02-19 23:43:22 -08:00
..
2026-02-16 00:31:10 -08:00
2026-02-19 23:43:22 -08:00
2026-02-19 23:43:22 -08:00
2026-02-16 00:31:10 -08:00
2026-02-15 22:06:08 -08:00
2026-02-15 22:06:08 -08:00
2026-02-19 20:36:22 -08:00
2026-02-15 22:04:09 -08:00
2026-02-15 22:04:09 -08:00
2026-02-19 23:43:22 -08:00
2026-02-15 22:04:09 -08:00
2025-12-29 15:46:03 +07:00
2026-02-15 21:55:24 -08:00
2026-02-15 22:04:09 -08:00
2026-02-15 22:04:09 -08:00
2026-02-15 22:14:12 -08:00
2026-02-16 00:26:07 -08:00
2026-02-08 12:02:06 -08:00