зеркало из https://github.com/Azure/azure-cli.git
Update util.py
This commit is contained in:
Родитель
b2bc4145dd
Коммит
67257e0339
|
@ -158,7 +158,11 @@ def build_sdk_access_token(token_entry):
|
|||
# Importing azure.core.credentials.AccessToken is expensive.
|
||||
# This can slow down commands that doesn't need azure.core, like `az account get-access-token`.
|
||||
# So We define our own AccessToken.
|
||||
return AccessToken(token_entry["access_token"], str(request_time) + token_entry["expires_in"])
|
||||
|
||||
expires_in = int(token_entry["expires_in"])
|
||||
expires_on = request_time + expires_in
|
||||
|
||||
return AccessToken(token_entry["access_token"], expires_on)
|
||||
|
||||
|
||||
def decode_access_token(access_token):
|
||||
|
|
Загрузка…
Ссылка в новой задаче