mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Fix client_secret auth (#1376)
- Stop strying new scopes when encountering an unexpected error
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user