aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-12-10 20:30:45 -0500
committerGitHub <noreply@github.com>2018-12-10 20:30:45 -0500
commit191f7163a0c1688bf079a01d835af4aac10ca060 (patch)
treec7d21926b5858e18fbadb0af0bf6a92f49de43c8 /Emby.Server.Implementations/HttpServer/Security/AuthService.cs
parent59750496d590b06b80cf781817d77031b1749d4e (diff)
parent7c2248727aec0d407ca5ad811b8c86b4efc1c19c (diff)
Merge pull request #22 from nvllsvm/byeprop1
Remove some proprietary libs
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthService.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthService.cs17
1 files changed, 1 insertions, 16 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
index 8f6d042dd..9dfb8cf03 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
@@ -51,12 +51,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
if (!IsExemptFromAuthenticationToken(auth, authAttribtues, request))
{
- var valid = IsValidConnectKey(auth.Token);
-
- if (!valid)
- {
- ValidateSecurityToken(request, auth.Token);
- }
+ ValidateSecurityToken(request, auth.Token);
}
if (authAttribtues.AllowLocalOnly && !request.IsLocal)
@@ -221,16 +216,6 @@ namespace Emby.Server.Implementations.HttpServer.Security
return info as AuthenticationInfo;
}
- private bool IsValidConnectKey(string token)
- {
- if (string.IsNullOrEmpty(token))
- {
- return false;
- }
-
- return ConnectManager.IsAuthorizationTokenValid(token);
- }
-
private void ValidateSecurityToken(IRequest request, string token)
{
if (string.IsNullOrEmpty(token))