The Free Software Media System - Server Backend & API
add windows phone exception
Luke Pulverenti9ba84148ddf2
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex 1325a1833f..a2e389e709 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -176,7 +176,7 @@ namespace MediaBrowser.Model.Configurationpublic PeopleMetadataOptions PeopleMetadataOptions { get; set; }public bool FindInternetTrailers { get; set; }- public string[] InsecureApps { get; set; }+ public string[] InsecureApps2 { get; set; }public bool SaveMetadataHidden { get; set; }@@ -226,12 +226,13 @@ namespace MediaBrowser.Model.ConfigurationPeopleMetadataOptions = new PeopleMetadataOptions();- InsecureApps = new[]+ InsecureApps2 = new[]{"Roku","Chromecast","iOS",- "Android"+ "Android",+ "Windows Phone"};MetadataOptions = new[]diff --git a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.csindex ac8e379021..753cfd242d 100644--- a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs@@ -65,7 +65,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Securityif (!allowLocal || !req.IsLocal){- if (!_config.Configuration.InsecureApps.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))+ if (!_config.Configuration.InsecureApps2.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase)){SessionManager.ValidateSecurityToken(auth.Token);}