fix: try to get any info from resp
All checks were successful
Build Docker / Build Docker (push) Successful in 28s
All checks were successful
Build Docker / Build Docker (push) Successful in 28s
This commit is contained in:
parent
2a2d9e1a98
commit
770f20773b
@ -523,7 +523,14 @@ def authUser():
|
||||
def issue_token():
|
||||
try:
|
||||
resp = authorization.create_token_response()
|
||||
print(resp.text,flush=True)
|
||||
if hasattr(resp, 'json'):
|
||||
print(resp.json(), flush=True)
|
||||
elif hasattr(resp, 'content'):
|
||||
print(resp.content, flush=True)
|
||||
elif hasattr(resp, 'data'):
|
||||
print(resp.data, flush=True)
|
||||
else:
|
||||
print("Unknown response structure:", resp)
|
||||
return resp
|
||||
except OAuth2Error as error:
|
||||
print(json.dumps({
|
||||
|
Loading…
Reference in New Issue
Block a user