debug-auth-connector
This commit is contained in:
parent
473f3a5a32
commit
4e078bf978
|
@ -16,7 +16,7 @@ async def check_auth(req):
|
||||||
operation = "GetUserId"
|
operation = "GetUserId"
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": token,
|
"Authorization": 'Bearer ' + token,
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ async def check_auth(req):
|
||||||
|
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql))
|
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:
|
if response.status_code != 200:
|
||||||
return False, None
|
return False, None
|
||||||
r = response.json()
|
r = response.json()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user