diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-03-21 17:26:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-21 17:26:05 -0500 |
| commit | 664b01cfc85d7c71ad40049bd2f2066916de456c (patch) | |
| tree | 063f9f4d5e2b13899aac7faccc03d5fea5c0b479 /src/slskd/Program.cs | |
| parent | bd4c10a559e9347be1313c544c4a590e41edca19 (diff) | |
| parent | 388e567bdf78eb7aade2db7187e1e806d172d932 (diff) | |
| download | slskd-664b01cfc85d7c71ad40049bd2f2066916de456c.tar.gz | |
Merge pull request #892 from slskd/underscores
Use `instance_name` from Relay Agent config instead of map key
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 5674aa2b..1236865f 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -618,14 +618,12 @@ namespace slskd { options.AddPolicy(AuthPolicy.JwtOnly, policy => { - policy.RequireRole(Role.Administrator.ToString()); policy.AuthenticationSchemes.Add(JwtBearerDefaults.AuthenticationScheme); policy.RequireAuthenticatedUser(); }); options.AddPolicy(AuthPolicy.ApiKeyOnly, policy => { - policy.RequireRole(Role.ReadWrite.ToString(), Role.Administrator.ToString()); policy.AuthenticationSchemes.Add(ApiKeyAuthentication.AuthenticationScheme); policy.RequireAuthenticatedUser(); }); |
