aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-04 23:48:53 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-04 23:48:53 -0400
commit91ffff7771cb4ae9f89dbc2cb7a5cec70a3301c2 (patch)
tree4c14c426a7de3469d281ad22110959958c9412a9 /MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs
parentdd2798a3d6a03c73067e93b398108d4e8678e8f5 (diff)
added dlna music folders
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs
index 2b9ae7d09..855b26034 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs
@@ -53,17 +53,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
ValidateUser(req, allowLocal);
}
- // TODO: Remove this when all clients have supported the new sescurity
- private readonly List<string> _updatedClients = new List<string>() { "Dashboard", "Chromecast" };
-
private void ValidateUser(IRequest req, bool allowLocal)
{
//This code is executed before the service
var auth = AuthorizationContext.GetAuthorizationInfo(req);
if (!string.IsNullOrWhiteSpace(auth.Token)
- || _config.Configuration.EnableTokenAuthentication
- || _updatedClients.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
+ || _config.Configuration.SecureApps.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
{
if (!allowLocal || !req.IsLocal)
{