diff options
Diffstat (limited to 'src/slskd/Common/Authentication/ApiKeyAuthentication.cs')
| -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; } } |
