diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-21 09:34:39 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-21 09:34:39 -0500 |
| commit | 37736ef3ec612736c3eeaa5c988b26ed3b3a54e0 (patch) | |
| tree | ac9abc301ed08979c98bd135782e7d3da1a4cb64 /src | |
| parent | 481d2029d7cadcf5b1985fa912a263d88f2f2cf3 (diff) | |
| download | slskd-37736ef3ec612736c3eeaa5c988b26ed3b3a54e0.tar.gz | |
fix misplaced class
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/Authentication/ApiKeyAuthentication.cs | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs index d11e00fb..9225b5a8 100644 --- a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs +++ b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs @@ -27,7 +27,6 @@ namespace slskd.Authentication using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.Logging; using NetTools; - using static slskd.Authentication.ApiKeyAuthenticationHandler; /// <summary> /// API key authentication. @@ -118,33 +117,33 @@ namespace slskd.Authentication return AuthenticateResult.Success(ticket); } + } + /// <summary> + /// API key authentication options. + /// </summary> + public class ApiKeyAuthenticationOptions : AuthenticationSchemeOptions + { /// <summary> - /// API key authentication options. + /// Initializes a new instance of the <see cref="ApiKeyAuthenticationOptions"/> class. /// </summary> - public class ApiKeyAuthenticationOptions : AuthenticationSchemeOptions + public ApiKeyAuthenticationOptions() { - /// <summary> - /// Initializes a new instance of the <see cref="ApiKeyAuthenticationOptions"/> class. - /// </summary> - public ApiKeyAuthenticationOptions() - { - } + } - /// <summary> - /// Gets or sets the route prefix used to identify SignalR authentication attempts. - /// </summary> - public string SignalRRoutePrefix { get; set; } + /// <summary> + /// Gets or sets the route prefix used to identify SignalR authentication attempts. + /// </summary> + public string SignalRRoutePrefix { get; set; } - /// <summary> - /// Gets or sets a value indicating whether to support SignalR authentication. - /// </summary> - public bool EnableSignalRSupport { get; set; } + /// <summary> + /// Gets or sets a value indicating whether to support SignalR authentication. + /// </summary> + public bool EnableSignalRSupport { get; set; } - /// <summary> - /// Gets or sets the role for authenticated tickets. - /// </summary> - public Role Role { get; set; } = Role.Administrator; - } + /// <summary> + /// Gets or sets the role for authenticated tickets. + /// </summary> + public Role Role { get; set; } = Role.Administrator; } } |
