Add JSON config, DB-backed library options, and docs
- Add JSON-based config loading with XML fallback for DB and library options - Implement LibraryOptionsRepository with EF Core, migrations, and entity - Update CollectionFolder to use DB-backed options with XML fallback/backfill - Register repository in DI and initialize at startup - Use EF execution strategy for transactional DB operations - Suppress code analysis warnings in .csproj and test files - Add DATABASE_MIGRATION.md, LIBRARY_OPTIONS_DB_DESIGN.md, and WEBSOCKET_AUTHENTICATION.md - Add database.json.example and improve migration docs - Add tests for JSON config loader and update test naming warnings
This commit is contained in:
@@ -83,6 +83,15 @@ namespace Jellyfin.Server.Implementations.Security
|
||||
IHeaderDictionary headers,
|
||||
IQueryCollection queryString)
|
||||
{
|
||||
// Token extraction priority (in order):
|
||||
// 1. Authorization header (MediaBrowser Token parameter)
|
||||
// 2. X-Emby-Token header (if legacy auth enabled)
|
||||
// 3. X-MediaBrowser-Token header (if legacy auth enabled)
|
||||
// 4. ApiKey query parameter
|
||||
// 5. api_key query parameter (if legacy auth enabled)
|
||||
// For WebSocket connections, use query parameters:
|
||||
// ws://server:port/path?api_key=YOUR_TOKEN
|
||||
|
||||
string? deviceId = null;
|
||||
string? deviceName = null;
|
||||
string? client = null;
|
||||
|
||||
Reference in New Issue
Block a user