From 9350666ac9d1e2ff0b3a7588cefa2a4fe28683ca Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 13 Feb 2021 09:21:55 -0600 Subject: specify role for passthrough --- src/slskd/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 26ffe4a6..e806fdfd 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -40,6 +40,7 @@ namespace slskd using Prometheus.SystemMetrics; using Serilog; using Serilog.Events; + using slskd.API.Authentication; using slskd.Entities; using slskd.Security; using slskd.Trackers; @@ -129,7 +130,8 @@ namespace slskd services.AddAuthentication(PassthroughAuthentication.AuthenticationScheme) .AddScheme(PassthroughAuthentication.AuthenticationScheme, options => { - options.Username = "n/a"; + options.Username = "Anonymous"; + options.Role = Role.Administrator; }); } -- cgit v1.2.3