Fix client_secret auth (#1376)

- Stop strying new scopes when encountering an unexpected error
This commit is contained in:
Cheick Keita
2021-10-26 11:27:24 -07:00
committed by GitHub
parent 98578da557
commit 7c86a3d7d9

View File

@ -210,6 +210,9 @@ class Backend:
# This error is caused by a by mismatch between the identifierUr and the scope provided in the request. # This error is caused by a by mismatch between the identifierUr and the scope provided in the request.
if "AADSTS500011" in result["error_description"]: if "AADSTS500011" in result["error_description"]:
LOGGER.warning(f"failed to get access token with scope {scope}") LOGGER.warning(f"failed to get access token with scope {scope}")
else:
# unexpected error
break
if "error" in result: if "error" in result:
raise Exception( raise Exception(