fix(jellyfin): send Authorization MediaBrowser header for modern servers - #460
fix(jellyfin): send Authorization MediaBrowser header for modern servers#460setiapam wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Jellyfin client now sends the token in the standard ChangesJellyfin authentication
Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Jellyfin requests now include authenticated tokens in the standard MediaBrowser Authorization header while retaining legacy Emby headers. Authentication and library-access flows are covered, with no remaining merge-readiness risk identified. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #451
Problem
Modern Jellyfin versions (including 10.10.x and 12.x) require standard
Authorization: MediaBrowser ...headers and reject legacyX-Emby-Authorization/X-Emby-Tokenonly requests with HTTP 400 Bad Request or HTTP 401 Unauthorized.Solution
Update
jellyfinDialect.applyAuthto set theAuthorization: MediaBrowser ...header (includingToken="..."when authenticated), while retainingX-Emby-AuthorizationandX-Emby-Tokenfor backwards compatibility with older Jellyfin instances.Verification
internal/embyapi/client_test.goensuringAuthorization: MediaBrowser ...header is sent for both unauthenticated and authenticated requests.go test ./...).Summary by CodeRabbit
MediaBrowserauthorization scheme.