diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-05 08:28:03 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-05 08:28:03 -0500 |
| commit | fae0729152ff1db8c4fd25c0c7a667bb3b76962e (patch) | |
| tree | 47e206f6fa366da1924300d9427b65925f0fd1b1 | |
| parent | 6e89d7d39b35735857f8f88555b6efe440b54b1c (diff) | |
| download | slskd-fae0729152ff1db8c4fd25c0c7a667bb3b76962e.tar.gz | |
disable API key auth
| -rw-r--r-- | src/slskd/Program.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index fd80d649..c9417ed8 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -612,13 +612,13 @@ namespace slskd }; }); - services.AddAuthentication(ApiKeyAuthentication.AuthenticationScheme) - .AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, options => - { - options.EnableSignalRSupport = true; - options.SignalRRoutePrefix = "/hub"; - options.Role = Role.Administrator; - }); + //services.AddAuthentication(ApiKeyAuthentication.AuthenticationScheme) + // .AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, options => + // { + // options.EnableSignalRSupport = true; + // options.SignalRRoutePrefix = "/hub"; + // options.Role = Role.Administrator; + // }); } else { |
