From 7c2248727aec0d407ca5ad811b8c86b4efc1c19c Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Mon, 10 Dec 2018 19:27:54 -0500 Subject: Remove Emby.Server.Connect --- .../HttpServer/Security/AuthService.cs | 17 +---------------- .../HttpServer/Security/AuthorizationContext.cs | 4 ---- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'Emby.Server.Implementations/HttpServer/Security') 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)) diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index ee8f6c60b..75dfa95d9 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs @@ -162,10 +162,6 @@ namespace Emby.Server.Implementations.HttpServer.Security _authRepo.Update(tokenInfo); } } - else - { - info.User = _connectManager.GetUserFromExchangeToken(token); - } httpReq.Items["OriginalAuthenticationInfo"] = tokenInfo; } -- cgit v1.2.3