diff options
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 43d802b1..f4d25630 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -645,6 +645,12 @@ namespace slskd policy.AuthenticationSchemes.Add(PassthroughAuthentication.AuthenticationScheme); policy.RequireAuthenticatedUser(); }); + + options.AddPolicy(AuthPolicy.JwtOnly, policy => + { + policy.AuthenticationSchemes.Add(PassthroughAuthentication.AuthenticationScheme); + policy.RequireAuthenticatedUser(); + }); }); services.AddAuthentication(PassthroughAuthentication.AuthenticationScheme) |
