From 4e078bf978039984ef27b2b8fdeaaeec37abe1cf Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 13 Oct 2023 15:42:10 +0300 Subject: [PATCH] debug-auth-connector --- services/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth.py b/services/auth.py index 1cd5569..f7f07f3 100644 --- a/services/auth.py +++ b/services/auth.py @@ -16,7 +16,7 @@ async def check_auth(req): operation = "GetUserId" headers = { - "Authorization": token, + "Authorization": 'Bearer ' + token, "Content-Type": "application/json" } @@ -28,7 +28,7 @@ async def check_auth(req): async with AsyncClient() as client: response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql)) - print(f"{response.text}") + print(f"[services.auth] response: {response.status_code} {response.text}") if response.status_code != 200: return False, None r = response.json()