01: infra
This commit is contained in:
1 parent
ec9bb74be0
commit
341cd05ac5
71 files changed
+2058
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# 03b: JWT Authentication Middleware
|
||||
|
||||
**What to build:** JWT authentication middleware with token validation, supporting multiple signers and future OAuth.
|
||||
|
||||
**Blocked by:** 03a (Layered FastAPI App Structure)
|
||||
|
||||
**Status:** ready-for-agent
|
||||
|
||||
- [ ] JWT middleware implemented (token extraction, validation, user injection)
|
||||
- [ ] Token generation function (`create_token(user_id, expires_in)`)
|
||||
- [ ] Token validation with secret key (configurable via environment)
|
||||
- [ ] `/auth/login` endpoint implemented (returns JWT token)
|
||||
- [ ] `/auth/logout` endpoint implemented (marks token as revoked)
|
||||
- [ ] Test client configured with auth header fixture
|
||||
Reference in new issue
Block a user