remove anonymous

This commit is contained in:
Stanley Dimant
2022-08-03 21:51:54 +02:00
parent 9e0ac74de7
commit 4477e186a3
2 changed files with 2 additions and 19 deletions

View File

@@ -9,7 +9,6 @@ using MareSynchronosServer.Data;
using MareSynchronosServer.Metrics;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
@@ -34,6 +33,7 @@ namespace MareSynchronosServer.Hubs
}
[HubMethodName(Api.InvokeHeartbeat)]
[Authorize(AuthenticationSchemes = SecretKeyAuthenticationHandler.AuthScheme)]
public async Task<ConnectionDto> Heartbeat(string characterIdentification)
{
MareMetrics.InitializedConnections.Inc();
@@ -79,12 +79,6 @@ namespace MareSynchronosServer.Hubs
};
}
[HubMethodName(Api.InvokeGetSystemInfo)]
public async Task<SystemInfoDto> GetSystemInfo()
{
return _systemInfoService.SystemInfoDto;
}
public override Task OnConnectedAsync()
{
var feature = Context.Features.Get<IHttpContextAccessor>();