Implement US-12 consolidated health overview service
This commit is contained in:
1 parent
cc76c9bde4
commit
076e675c81
26 files changed
+804
-16
No files matched your search
@@ -14,7 +14,7 @@ public sealed class InternalServiceAuthenticationHandler(IOptionsMonitor<Authent
|
||||
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
|
||||
{
|
||||
var supplied = Request.Headers["X-Service-Key"].ToString();
|
||||
foreach (var service in new[] { "Observation", "Insights" })
|
||||
foreach (var service in new[] { "Observation", "Insights", "HealthOverview" })
|
||||
{
|
||||
var expected = configuration[$"InternalAccess:{service}:Key"]!;
|
||||
if (CryptographicOperations.FixedTimeEquals(Encoding.UTF8.GetBytes(supplied), Encoding.UTF8.GetBytes(expected)))
|
||||
|
||||
Reference in new issue
Block a user