[t-003] Create auth.py — Bearer token middleware #3
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Implement FastAPI dependency-based bearer token authentication for all endpoints.
References
Reference
Implementation Steps
Implementation Steps
1. Create
src/core/auth.pyCreate the auth module with:
2. Create
src/core/exceptions.py(placeholder — will be expanded in t-018)For now, create a minimal exceptions module that handles the auth_invalid case:
Verification Gate
Verification Gate
Run:
And verify rejection:
STOP Conditions
STOP Conditions
Depends on: t-002