fix: Update to use json value
All checks were successful
Build Docker / Build Docker (push) Successful in 31s
All checks were successful
Build Docker / Build Docker (push) Successful in 31s
This commit is contained in:
parent
770f20773b
commit
62eb30bd2d
@ -524,13 +524,11 @@ def issue_token():
|
|||||||
try:
|
try:
|
||||||
resp = authorization.create_token_response()
|
resp = authorization.create_token_response()
|
||||||
if hasattr(resp, 'json'):
|
if hasattr(resp, 'json'):
|
||||||
print(resp.json(), flush=True)
|
print(resp.json, flush=True)
|
||||||
elif hasattr(resp, 'content'):
|
if hasattr(resp, 'content'):
|
||||||
print(resp.content, flush=True)
|
print(resp.content, flush=True)
|
||||||
elif hasattr(resp, 'data'):
|
if hasattr(resp, 'data'):
|
||||||
print(resp.data, flush=True)
|
print(resp.data, flush=True)
|
||||||
else:
|
|
||||||
print("Unknown response structure:", resp)
|
|
||||||
return resp
|
return resp
|
||||||
except OAuth2Error as error:
|
except OAuth2Error as error:
|
||||||
print(json.dumps({
|
print(json.dumps({
|
||||||
|
Loading…
Reference in New Issue
Block a user