From 37736ef3ec612736c3eeaa5c988b26ed3b3a54e0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 21 Oct 2022 09:34:39 -0500 Subject: fix misplaced class --- .../Common/Authentication/ApiKeyAuthentication.cs | 43 +++++++++++----------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'src/slskd/Common/Authentication/ApiKeyAuthentication.cs') 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; /// /// API key authentication. @@ -118,33 +117,33 @@ namespace slskd.Authentication return AuthenticateResult.Success(ticket); } + } + /// + /// API key authentication options. + /// + public class ApiKeyAuthenticationOptions : AuthenticationSchemeOptions + { /// - /// API key authentication options. + /// Initializes a new instance of the class. /// - public class ApiKeyAuthenticationOptions : AuthenticationSchemeOptions + public ApiKeyAuthenticationOptions() { - /// - /// Initializes a new instance of the class. - /// - public ApiKeyAuthenticationOptions() - { - } + } - /// - /// Gets or sets the route prefix used to identify SignalR authentication attempts. - /// - public string SignalRRoutePrefix { get; set; } + /// + /// Gets or sets the route prefix used to identify SignalR authentication attempts. + /// + public string SignalRRoutePrefix { get; set; } - /// - /// Gets or sets a value indicating whether to support SignalR authentication. - /// - public bool EnableSignalRSupport { get; set; } + /// + /// Gets or sets a value indicating whether to support SignalR authentication. + /// + public bool EnableSignalRSupport { get; set; } - /// - /// Gets or sets the role for authenticated tickets. - /// - public Role Role { get; set; } = Role.Administrator; - } + /// + /// Gets or sets the role for authenticated tickets. + /// + public Role Role { get; set; } = Role.Administrator; } } -- cgit v1.2.3