aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-05 08:51:39 -0500
committerGitHub <noreply@github.com>2022-10-05 08:51:39 -0500
commit0332dc694bd9d2a927e8be975e0fa6d70b960252 (patch)
tree47e206f6fa366da1924300d9427b65925f0fd1b1 /src/slskd/Program.cs
parent6e89d7d39b35735857f8f88555b6efe440b54b1c (diff)
parentfae0729152ff1db8c4fd25c0c7a667bb3b76962e (diff)
downloadslskd-0332dc694bd9d2a927e8be975e0fa6d70b960252.tar.gz
Merge pull request #678 from slskd/fix-auth
Temporarily disable API key authentication
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs14
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
{