diff options
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 4d9f6830..7b727308 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -70,6 +70,7 @@ namespace slskd using Soulseek; using Utility.CommandLine; using Utility.EnvironmentVariables; + using static slskd.Authentication.ApiKeyAuthenticationHandler; using IOFile = System.IO.File; /// <summary> @@ -612,7 +613,12 @@ namespace slskd }); services.AddAuthentication(ApiKeyAuthentication.AuthenticationScheme) - .AddScheme<AuthenticationSchemeOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, configureOptions: null); + .AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, options => + { + options.EnableSignalRSupport = true; + options.SignalRRoutePrefix = "/hub"; + options.Role = Role.Administrator; + }); } else { |
