From 9ba84148ddf24d9cdbc02d9fcda4335b28f37a68 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 15 Oct 2014 08:33:50 -0400 Subject: [PATCH] add windows phone exception --- MediaBrowser.Model/Configuration/ServerConfiguration.cs | 7 ++++--- .../HttpServer/Security/AuthService.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 1325a1833f..a2e389e709 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -176,7 +176,7 @@ namespace MediaBrowser.Model.Configuration public 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.Configuration PeopleMetadataOptions = 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.cs index 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.Security if (!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); }