Error code returned by AAD for an expired token changed from 70008 to 700082

This commit is contained in:
David Kydd 2019-03-22 17:30:47 +13:00
Родитель 92dedd5134
Коммит c188b8449e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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