aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-07 18:54:29 -0600
committerGitHub <noreply@github.com>2023-01-07 18:54:29 -0600
commitff5f0ac6c93f2b49ba259e7093fb92fa873116c6 (patch)
tree89a57703213c524f09346aac4fcf3a9ee8b3cf04 /src/slskd/Program.cs
parentd5eabb72a5c5a3aed06f0c4b8f66c853468b889b (diff)
parentf07a7758b47388c793d73ca54727db95abfcd229 (diff)
downloadslskd-ff5f0ac6c93f2b49ba259e7093fb92fa873116c6.tar.gz
Merge pull request #827 from slskd/relay-debug
Miscellaneous Relay refactoring and bugfixes
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index d0b670a2..28ef7279 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -696,6 +696,12 @@ namespace slskd
policy.RequireAuthenticatedUser();
});
+ options.AddPolicy(AuthPolicy.ApiKeyOnly, policy =>
+ {
+ policy.AuthenticationSchemes.Add(PassthroughAuthentication.AuthenticationScheme);
+ policy.RequireAuthenticatedUser();
+ });
+
options.AddPolicy(AuthPolicy.JwtOnly, policy =>
{
policy.AuthenticationSchemes.Add(PassthroughAuthentication.AuthenticationScheme);