authorizer-connector-debug
All checks were successful
deploy / deploy (push) Successful in 1m32s

This commit is contained in:
Untone 2023-12-12 10:30:32 +03:00
parent 954c3740cd
commit 74ca120879
2 changed files with 3 additions and 3 deletions

View File

@ -17,6 +17,7 @@ starlette = "^0.32.0.post1"
gql = "^3.4.1"
ariadne = "^0.21"
aiohttp = "^3.9.1"
requests = "^2.31.0"
[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2"

View File

@ -12,10 +12,9 @@ async def check_auth(req):
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
# query getSession($params: SessionQueryInput){ session(params: $params) { message user { id } } }
gql = {
"query": "query GetSession($params: SessionQueryInput)"
+ "{ session(params: $params) { message user { id } } }",
"query": "query GetSession($params: SessionQueryInput){ session(params: $params) { message user { id } } }",
"operationName": "GetSession",
"variables": {},
"variables": None, # {"params": {"roles": ["author"]}},
}
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30.0)) as session: