We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6388839 commit e29bdb2Copy full SHA for e29bdb2
code/function/fastapp/health/validate_request.py
@@ -4,6 +4,9 @@
4
5
from fastapi import Header, HTTPException
6
from fastapp.core.config import settings
7
+from fastapp.utils import setup_logging
8
+
9
+logger = setup_logging(__name__)
10
11
12
async def verify_health_auth_header(
@@ -15,6 +18,7 @@ async def verify_health_auth_header(
15
18
x_ms_auth_internal_token: Value of the x-ms-auth-internal-token header.
16
19
RETURNS (bool): Specifies whether the header matches.
17
20
"""
21
+ logger.info(f"Header value: '{x_ms_auth_internal_token}'")
22
website_auth_encryption_key = settings.WEBSITE_AUTH_ENCRYPTION_KEY
23
hash = base64.b64encode(
24
sha256(website_auth_encryption_key.encode("utf-8")).digest()
0 commit comments