fix(api): send Jellyfin key in Authorization header #285

Merged
naps62-yolo merged 1 commits from fix/jellyfin-auth-header into main 2026-11-15 17:33:08 +00:00
Owner

Requested by naps · project thread

The Jellyfin library refresh now sends the API key as Authorization: MediaBrowser Token="…" instead of X-Emby-Token.

Jellyfin 12.4 rejects X-Emby-Token and the api_key query parameter with 401, even for a valid key. Every post-import refresh was failing with jellyfin returned 401 Unauthorized.

Verification

Against the live server (12.4.0), with the same key: X-Emby-Token returns 401, X-MediaBrowser-Token 401, ?api_key= 401, and the Authorization form 200. POST /Library/Refresh with it returns 204. just ci passes: 837 tests.

🤖 Generated with Claude Code

<!-- claude-projects-attribution: {"github_login":"naps62"} --> _Requested by **naps** · [project thread](https://claude.ai/code/project/chan_01UYLqY2bRGpRgeywoBE6jwE?thread=cmsg_01UYLqY2bRGpRgeywoBE6jwE7yDArkDjRqgeWPQBN76BJo)_ The Jellyfin library refresh now sends the API key as `Authorization: MediaBrowser Token="…"` instead of `X-Emby-Token`. Jellyfin 12.4 rejects `X-Emby-Token` and the `api_key` query parameter with 401, even for a valid key. Every post-import refresh was failing with `jellyfin returned 401 Unauthorized`. <details><summary>Verification</summary> Against the live server (12.4.0), with the same key: `X-Emby-Token` returns 401, `X-MediaBrowser-Token` 401, `?api_key=` 401, and the `Authorization` form 200. `POST /Library/Refresh` with it returns 204. `just ci` passes: 837 tests. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
naps62-yolo added 1 commit 2026-11-15 17:10:49 +00:00
fix(api): send Jellyfin key in Authorization header
ci / web (pull_request) Successful in 1m24s
e2e / e2e (pull_request) Successful in 3m9s
ci / rust (pull_request) Successful in 3m30s
ci / image (pull_request) Skipped
a0e346647f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
naps62-yolo merged commit 77e5177e24 into main 2026-11-15 17:33:08 +00:00
naps62-yolo deleted branch fix/jellyfin-auth-header 2026-11-15 17:33:08 +00:00
Sign in to join this conversation.