aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-09-24 08:50:18 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-09-24 08:50:18 -0500
commit72f2000e3826ff9b40dd59f5252ea246b244d539 (patch)
tree246595ab846708e467f49a6a8f12b4ba165029cc /src/slskd/Core/API
parentbc17beab782c8c9b9c04035a31c435d4d9c42596 (diff)
downloadslskd-72f2000e3826ff9b40dd59f5252ea246b244d539.tar.gz
add auth
Diffstat (limited to 'src/slskd/Core/API')
-rw-r--r--src/slskd/Core/API/Hubs/ApplicationHub.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Core/API/Hubs/ApplicationHub.cs b/src/slskd/Core/API/Hubs/ApplicationHub.cs
index 90dc469f..a22fc7df 100644
--- a/src/slskd/Core/API/Hubs/ApplicationHub.cs
+++ b/src/slskd/Core/API/Hubs/ApplicationHub.cs
@@ -18,6 +18,7 @@
namespace slskd.Core.API
{
using System.Threading.Tasks;
+ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;
/// <summary>
@@ -45,6 +46,7 @@ namespace slskd.Core.API
/// <summary>
/// The application SignalR hub.
/// </summary>
+ [Authorize]
public class ApplicationHub : Hub
{
}