The Free Software Media System - Server Backend & API
Fixes Ombi auth through Jellyfin
NickSica4b2c40f71706
diff --git a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs b/Jellyfin.Server.Implementations/Security/AuthorizationContext.csindex 3ab043c648..efa7e3b5ce 100644--- a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs+++ b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs@@ -185,9 +185,20 @@ namespace Jellyfin.Server.Implementations.SecurityauthInfo.IsAuthenticated = true;authInfo.Client = key.Name;authInfo.Token = key.AccessToken;- authInfo.DeviceId = string.Empty;- authInfo.Device = string.Empty;- authInfo.Version = string.Empty;+ if(string.IsNullOrWhiteSpace(authInfo.DeviceId))+ {+ authInfo.DeviceId = string.Empty;+ }++ if(string.IsNullOrWhiteSpace(authInfo.Device))+ {+ authInfo.Device = string.Empty;+ }++ if(string.IsNullOrWhiteSpace(authInfo.Version))+ {+ authInfo.Version = string.Empty;+ }authInfo.IsApiKey = true;}}