We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bf2df7 commit 8934533Copy full SHA for 8934533
auth-api/src/auth_api/services/keycloak.py
@@ -461,6 +461,8 @@ def get_service_account_by_client_name(client_name: str):
461
timeout=timeout,
462
)
463
response.raise_for_status()
464
+ if len(response.json()) == 0:
465
+ raise BusinessException(Error.DATA_NOT_FOUND, None)
466
client_id = response.json()[0]["id"]
467
return KeycloakService.get_service_account_user(client_id)
468
0 commit comments