From 56567464a5955ce6be66769ddec4acea90ac36b5 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 3 Oct 2022 07:35:27 -0500 Subject: docs --- src/slskd/Common/Authentication/ApiKeyAuthentication.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs index 08cfa3b6..8baae3f9 100644 --- a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs +++ b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs @@ -85,6 +85,9 @@ namespace slskd.Authentication } else if (apiKeyOptions.EnableSignalRSupport && Request.Path.StartsWithSegments(apiKeyOptions.SignalRRoutePrefix) && Request.Query.ContainsKey("access_token")) { + // assign the request token from the access_token query parameter + // but only if the destination is a SignalR hub + // https://docs.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-5.0 key = Request.Query["access_token"]; } else -- cgit v1.2.3