mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
Remove Emby.Server.Connect
This commit is contained in:
parent
03b637b22b
commit
7c2248727a
8 changed files with 54 additions and 75 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -162,10 +162,6 @@ namespace Emby.Server.Implementations.HttpServer.Security
|
|||
_authRepo.Update(tokenInfo);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
info.User = _connectManager.GetUserFromExchangeToken(token);
|
||||
}
|
||||
httpReq.Items["OriginalAuthenticationInfo"] = tokenInfo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue