generated from personal-projects/leo-claude-mktplace
[Sprint 02] feat: Implement HTTP authentication middleware #13
Reference in New Issue
Block a user
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?
Summary
Create
auth.pymodule to implement optional HTTP endpoint authentication.Tasks
src/gitea_mcp_remote/auth.pyAuthMiddlewareclass for HTTP authAuthorizationheaderconfig.AUTH_TOKENAUTH_TOKENnot set, allow all requests (no auth)Authorization: Bearer <token>headerAcceptance Criteria
auth.pyexists withAuthMiddlewareclassAUTH_TOKENunsetDependencies
Blocked by: #11 (needs config to read AUTH_TOKEN)
Context
Optional security layer for the HTTP endpoint. If deploying publicly, set AUTH_TOKEN to require authentication.
References:
Size: M (2-4 hours)
⚠️ Blocked By: #11