allow health to override auth
Some checks failed
Build and Publish / build-release (push) Failing after 2m41s
Some checks failed
Build and Publish / build-release (push) Failing after 2m41s
This commit is contained in:
@@ -10,6 +10,8 @@ class AuthMiddleware(BaseHTTPMiddleware):
|
|||||||
# Skip auth for health endpoint
|
# Skip auth for health endpoint
|
||||||
if request.url.path == "/health":
|
if request.url.path == "/health":
|
||||||
return await call_next(request)
|
return await call_next(request)
|
||||||
|
if request.url.path == "/health/ready":
|
||||||
|
return await call_next(request)
|
||||||
request.state.org_id = "test"
|
request.state.org_id = "test"
|
||||||
response = await call_next(request)
|
response = await call_next(request)
|
||||||
return response
|
return response
|
||||||
|
|||||||
Reference in New Issue
Block a user