diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-07 10:21:43 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-01-07 10:21:43 -0600 |
| commit | b61c047068ec4c8b44ba058d6cb9ebb1cf6c4dff (patch) | |
| tree | 890bb2d34cadaf48a3ecbc0ddfbedc2a14024b3c /src/slskd/Common/Authentication | |
| parent | d5eabb72a5c5a3aed06f0c4b8f66c853468b889b (diff) | |
| download | slskd-b61c047068ec4c8b44ba058d6cb9ebb1cf6c4dff.tar.gz | |
fix ApiKeyOnly policy issue
Diffstat (limited to 'src/slskd/Common/Authentication')
| -rw-r--r-- | src/slskd/Common/Authentication/ApiKeyAuthentication.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Common/Authentication/AuthPolicy.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs index a41a9d59..7c6c9235 100644 --- a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs +++ b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs @@ -34,7 +34,7 @@ namespace slskd.Authentication /// <summary> /// Gets the API key authentication scheme name. /// </summary> - public static string AuthenticationScheme { get; } = "API Key"; + public static string AuthenticationScheme { get; } = "ApiKey"; } /// <summary> diff --git a/src/slskd/Common/Authentication/AuthPolicy.cs b/src/slskd/Common/Authentication/AuthPolicy.cs index 040104da..47d430c9 100644 --- a/src/slskd/Common/Authentication/AuthPolicy.cs +++ b/src/slskd/Common/Authentication/AuthPolicy.cs @@ -23,7 +23,7 @@ namespace slskd public static class AuthPolicy { public const string JwtOnly = "Jwt"; - public const string ApiKeyOnly = "ApiKeyOnly"; + public const string ApiKeyOnly = "ApiKey"; public const string Any = "Any"; } } |
