Finish: Phase 33 — Alert Quality Analytics

This commit is contained in:
voltsrage
2026-06-24 03:39:24 +08:00
parent 185dc93fa1
commit 68c397350b
26 changed files with 934 additions and 169 deletions
@@ -7,6 +7,7 @@ using Microsoft.Extensions.Options;
public class TestingAuthHandler : AuthenticationHandler<AuthenticationSchemeOptions>
{
public const string SchemeName = "Testing";
public const string DefaultTestUserId = "00000000-0000-0000-0000-000000000001";
public TestingAuthHandler(
IOptionsMonitor<AuthenticationSchemeOptions> options,
@@ -22,7 +23,7 @@ public class TestingAuthHandler : AuthenticationHandler<AuthenticationSchemeOpti
var role = roleHeader.ToString();
var userId = Request.Headers.TryGetValue("X-Test-User-Id", out var idHeader)
? idHeader.ToString()
: Guid.NewGuid().ToString();
: DefaultTestUserId;
var claims = new[]
{