Error code returned by AAD for an expired token changed from 70008 to 700082
This commit is contained in:
Родитель
92dedd5134
Коммит
c188b8449e
|
@ -360,8 +360,8 @@ class AzureBatchConfig(object):
|
|||
|
||||
except AdalError as exp:
|
||||
errors = exp.error_response['error_codes']
|
||||
if 70002 in errors or 70008 in errors:
|
||||
#70002 is: Error validating credentials. 70008 is: The refresh token has expired due to inactivity.
|
||||
if 70002 in errors or 70008 or 700082 in errors:
|
||||
#70002 is: Error validating credentials. 70008 or more recently 700082 is: The refresh token has expired due to inactivity.
|
||||
return False
|
||||
raise exp
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче