diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-13 09:21:55 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-13 09:21:55 -0600 |
| commit | 9350666ac9d1e2ff0b3a7588cefa2a4fe28683ca (patch) | |
| tree | 4d24c336633e911db1b5a8166b286e609a5f533e /src | |
| parent | bb4fd8e302b8308e3bcb3158afd60b7681a2de98 (diff) | |
| download | slskd-9350666ac9d1e2ff0b3a7588cefa2a4fe28683ca.tar.gz | |
specify role for passthrough
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Startup.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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<PassthroughAuthenticationOptions, PassthroughAuthenticationHandler>(PassthroughAuthentication.AuthenticationScheme, options => { - options.Username = "n/a"; + options.Username = "Anonymous"; + options.Role = Role.Administrator; }); } |
