claims
All checks were successful
Deploy on push / deploy (push) Successful in 55s

This commit is contained in:
Untone 2024-12-22 00:34:35 +03:00
parent 4ffcbf36d3
commit 48994d8bfd

View File

@ -29,7 +29,7 @@ async def check_auth(req):
host = req.headers.get('host', '') host = req.headers.get('host', '')
logger.debug(f"check_auth: host={host}") logger.debug(f"check_auth: host={host}")
auth_url = AUTH_URL auth_url = AUTH_URL
if 'testing.dscrs.site' in host or 'localhost' in host: if '.dscrs.site' in host or 'localhost' in host:
auth_url = "https://auth.dscrs.site/graphql" auth_url = "https://auth.dscrs.site/graphql"
user_id = "" user_id = ""
user_roles = [] user_roles = []
@ -38,7 +38,7 @@ async def check_auth(req):
logger.debug(f"{token}") logger.debug(f"{token}")
query_name = "validate_jwt_token" query_name = "validate_jwt_token"
operation = "ValidateToken" operation = "ValidateToken"
variables = {"params": {"token_type": "access_token", "token": "Bearer " + token}} variables = {"params": {"token_type": "access_token", "token": token}}
gql = { gql = {
"query": f"query {operation}($params: ValidateJWTTokenInput!)" "query": f"query {operation}($params: ValidateJWTTokenInput!)"