Removed test code from ApiKeySchemeHandler

This commit is contained in:
2026-02-14 15:31:47 +01:00
parent 816aa01319
commit 64e4d7201e

View File

@@ -46,15 +46,11 @@ public class ApiKeySchemeHandler : AuthenticationHandler<ApiKeySchemeOptions>
cacheKey,
async ct =>
{
var x = await ApiKeyRepository
return await ApiKeyRepository
.Query()
.Where(x => x.Key == authHeaderValue)
.Select(x => new ApiKeySession(x.Permissions, x.ValidUntil))
.FirstOrDefaultAsync(cancellationToken: ct);
Console.WriteLine($"API: {x?.ValidUntil}");
return x;
},
new HybridCacheEntryOptions()
{