Compare commits

..

No commits in common. "43cd57a158f46de909c5f10c035c816d6a69727d" and "db6f1408589d26ed84af2435310af4cbfba541f0" have entirely different histories.

2 changed files with 1 additions and 12 deletions

View File

@ -14,11 +14,7 @@ steps:
- latest - latest
trigger: trigger:
branch: branch:
include:
- master - master
event:
exclude:
- pull_request
--- ---
kind: pipeline kind: pipeline

View File

@ -13,13 +13,6 @@ public class ApiKeyAuthAuthentication
public async Task InvokeAsync(HttpContext context) public async Task InvokeAsync(HttpContext context)
{ {
// allow access to /health without auth
if (context.Request.Path == "/health")
{
await _next(context);
return;
}
if (!context.Request.Headers.TryGetValue(HeaderApiKey, out var extractedApiKey)) if (!context.Request.Headers.TryGetValue(HeaderApiKey, out var extractedApiKey))
{ {
context.Response.StatusCode = 401; context.Response.StatusCode = 401;