aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-03-21 17:04:38 -0500
committerJP Dillingham <jp@dillingham.me>2023-03-21 17:04:38 -0500
commit097859a4b3d59b6131f82ba64ee9ee1c774a2f54 (patch)
tree79ea955aff3c10f58551be99655ae724a57d193e /src
parent23b61906072b9df7d0c72e48d133da62b7c52342 (diff)
downloadslskd-097859a4b3d59b6131f82ba64ee9ee1c774a2f54.tar.gz
remove roles from ApiKeyOnly policy
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 5674aa2b..41c54626 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -625,7 +625,6 @@ namespace slskd
options.AddPolicy(AuthPolicy.ApiKeyOnly, policy =>
{
- policy.RequireRole(Role.ReadWrite.ToString(), Role.Administrator.ToString());
policy.AuthenticationSchemes.Add(ApiKeyAuthentication.AuthenticationScheme);
policy.RequireAuthenticatedUser();
});