From 486d0a9768525c6f5d94ebc5b3c02cc9f7376b17 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 6 Oct 2022 08:12:49 -0500 Subject: add policies for passthrough --- src/slskd/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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) -- cgit v1.2.3