Skip to content

Commit

Permalink
Update rksapilogin.py with new introduced JSON Web Token (JWT)
Browse files Browse the repository at this point in the history
  • Loading branch information
indhradhanush authored Apr 19, 2023
1 parent 50a4e95 commit c04449a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rksapilogin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def apilogin(session):
respjson = resp.json()
if resp.status_code == 200:
tid=respjson['tenantId']
jw_token=respjson['jwt']
print('Tenant:', tid)
print('API-KEY:', resp.json()['API-KEY'])
return tid
print('JWT:', resp.json()['jwt'])
return tid,jw_token
else:
print("Login failed")
exit()

0 comments on commit c04449a

Please sign in to comment.