mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Move #1829 work
This commit is contained in:
@@ -4533,7 +4533,7 @@ def getOauth2TxtCredentials(exitOnError=True, api=None, noDASA=False, refreshOnl
|
|||||||
creds.token = jsonDict['access_token']
|
creds.token = jsonDict['access_token']
|
||||||
creds._id_token = jsonDict['id_token_jwt']
|
creds._id_token = jsonDict['id_token_jwt']
|
||||||
GM.Globals[GM.DECODED_ID_TOKEN] = jsonDict['id_token']
|
GM.Globals[GM.DECODED_ID_TOKEN] = jsonDict['id_token']
|
||||||
creds.expiry = arrow.Arrow.strptime(token_expiry, YYYYMMDDTHHMMSSZ_FORMAT).naive
|
creds.expiry = arrow.Arrow.strptime(token_expiry, YYYYMMDDTHHMMSSZ_FORMAT, tzinfo='UTC').naive
|
||||||
return (not noScopes, creds)
|
return (not noScopes, creds)
|
||||||
if jsonDict and exitOnError:
|
if jsonDict and exitOnError:
|
||||||
invalidOauth2TxtExit(Msg.INVALID)
|
invalidOauth2TxtExit(Msg.INVALID)
|
||||||
|
|||||||
Reference in New Issue
Block a user