From 27612186dee42bc69397077b0b4740b8ca052e54 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 11 Dec 2023 22:50:13 +0300 Subject: [PATCH] authorizer-connector-fix-5 --- services/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth.py b/services/auth.py index dd3501ff..a4eb799a 100644 --- a/services/auth.py +++ b/services/auth.py @@ -8,13 +8,13 @@ async def check_auth(req): token = req.headers.get("Authorization") print(f"[services.auth] checking auth token: {token}") - headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"} + headers = {"Cookie": f"cookie_session={token};\ncookie_session_domain={token}", "Content-Type": "application/json"} # query getSession($params: SessionQueryInput){ session(params: $params) { message user { id } } } gql = { "query": f"query GetSession($params: SessionQueryInput)" + "{ session(params: $params) { message user { id } } }", "operationName": "GetSession", - "variables": None, + "variables": {}, } async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30.0)) as session: