Skip to content

fix(auth): register AuthMiddleware on protected routes (DEV-31)#3

Merged
RndmCodeGuy20 merged 1 commit into
stagingfrom
feat/dev-31-register-auth-middleware
Jun 16, 2026
Merged

fix(auth): register AuthMiddleware on protected routes (DEV-31)#3
RndmCodeGuy20 merged 1 commit into
stagingfrom
feat/dev-31-register-auth-middleware

Conversation

@RndmCodeGuy20

Copy link
Copy Markdown
Owner

Closes DEV-31.

AuthMiddleware was fully implemented but never registered, leaving /storage/presign and /assets/{id}/complete fully public.

Fix

  • Apply AuthMiddleware to the /storage and /assets route groups
  • Run auth before the presign rate limiter (reject anonymous traffic before spending limiter budget)
  • Info/health endpoints stay public
  • Unit tests: all reject paths return 401 and never invoke the handler; valid token populates userID in context

🤖 Generated with Claude Code

- Apply AuthMiddleware to /storage and /assets route groups
- Run auth before presign rate limiter to reject anonymous traffic early
- Keep info and health endpoints public
- Add unit tests for reject paths and userID context injection
@RndmCodeGuy20 RndmCodeGuy20 merged commit 74b2fb1 into staging Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant