Skip to content

Commit fcc5266

Browse files
committed
test
1 parent 87c5527 commit fcc5266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/function/fastapp/health/validate_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ async def verify_health_auth_header(x_ms_auth_internal_token: Annotated[str, Hea
1212
"""
1313
website_auth_encryption_key = settings.WEBSITE_AUTH_ENCRYPTION_KEY
1414
hash = base64.b64encode(sha256(website_auth_encryption_key.encode('utf-8')).digest()).decode('utf-8')
15+
print("Tokens are:")
16+
print(hash)
17+
print(x_ms_auth_internal_token)
1518
if hash != x_ms_auth_internal_token:
1619
raise HTTPException(status_code=400, detail="x-ms-auth-internal-token is invalid")
1720
else:

0 commit comments

Comments
 (0)