Removed old manual access token checking and switched to asp.net jwt handling. Removed old console subscriber handling and switched to full signal r solution + asp.net core auth
This commit is contained in:
@@ -98,7 +98,7 @@ public class ServerFileSystemController : Controller
|
||||
|
||||
url += server.Node.UseSsl ? "https://" : "http://";
|
||||
url += $"{server.Node.Fqdn}:{server.Node.HttpPort}/";
|
||||
url += $"api/servers/upload?token={accessToken}";
|
||||
url += $"api/servers/upload?access_token={accessToken}";
|
||||
|
||||
return new ServerFilesUploadResponse()
|
||||
{
|
||||
@@ -126,7 +126,7 @@ public class ServerFileSystemController : Controller
|
||||
|
||||
url += server.Node.UseSsl ? "https://" : "http://";
|
||||
url += $"{server.Node.Fqdn}:{server.Node.HttpPort}/";
|
||||
url += $"api/servers/download?token={accessToken}";
|
||||
url += $"api/servers/download?access_token={accessToken}";
|
||||
|
||||
return new ServerFilesDownloadResponse()
|
||||
{
|
||||
|
||||
@@ -132,7 +132,7 @@ public class ServersController : Controller
|
||||
{
|
||||
parameters.Add("type", "websocket");
|
||||
parameters.Add("serverId", server.Id);
|
||||
}, TimeSpan.FromMinutes(10));
|
||||
}, TimeSpan.FromSeconds(30));
|
||||
|
||||
var url = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user