less-logs
All checks were successful
deploy / deploy (push) Successful in 1m26s

This commit is contained in:
Untone 2023-12-17 09:20:33 +03:00
parent 312900cec1
commit af4c1efd1c
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- resolvers: added /new-author webhook resolver - resolvers: added /new-author webhook resolver
- resolvers: added reader.load_shouts_top_random - resolvers: added reader.load_shouts_top_random
- resolvers: added reader.load_shouts_unrated - resolvers: added reader.load_shouts_unrated
- resolvers: community follower id property name is .author
- services: auth connector upgraded - services: auth connector upgraded

View File

@ -28,7 +28,7 @@ async def check_auth(req) -> (bool, int | None):
"variables": variables, "variables": variables,
"operationName": opeation, "operationName": opeation,
} }
print(f"[services.auth] Graphql: {gql}") # print(f"[services.auth] Graphql: {gql}")
try: try:
# Asynchronous HTTP request to the authentication server # Asynchronous HTTP request to the authentication server
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
@ -71,7 +71,7 @@ def login_required(f):
context = info.context context = info.context
# print(context) # print(context)
req = context.get("request") req = context.get("request")
print(f"[services.auth] login_required request headers: {req.headers}") # print(f"[services.auth] login_required request headers: {req.headers}")
# Performing authentication check # Performing authentication check
is_authenticated, user_id = await check_auth(req) is_authenticated, user_id = await check_auth(req)
if not is_authenticated: if not is_authenticated: