Fix token-based file downloads authentication #54

Merged
jimmy merged 1 commits from dev into main 2026-04-21 21:58:01 +08:00
Owner

Allow unauthenticated access to /api/files/download endpoint when using a valid token. This fixes the 401 Unauthorized errors preventing file downloads.

Changes:

  • Removed router-level authentication from files router
  • Added per-endpoint authentication to browse and download-token endpoints
  • Download endpoint now works with tokens without requiring authentication
Allow unauthenticated access to /api/files/download endpoint when using a valid token. This fixes the 401 Unauthorized errors preventing file downloads. Changes: - Removed router-level authentication from files router - Added per-endpoint authentication to browse and download-token endpoints - Download endpoint now works with tokens without requiring authentication
jimmy added 1 commit 2026-04-21 21:57:54 +08:00
fix: allow unauthenticated access to token-based file downloads
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 2m37s
Run Tests / Backend Tests (push) Failing after 5m2s
Run Tests / Frontend Tests (push) Failing after 2m7s
Run Tests / Backend Tests (pull_request) Failing after 5m5s
Run Tests / Frontend Tests (pull_request) Failing after 2m25s
Run Tests / Test Summary (push) Failing after 14s
Run Tests / Test Summary (pull_request) Failing after 12s
f1b39d0a8a
jimmy merged commit 456caad1c4 into main 2026-04-21 21:58:01 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jimmy/nas-tools#54