Skip to content

Commit 3001302

Browse files
committed
chore: refactor create/update/refresh admin_api user
1 parent 1545355 commit 3001302

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

applications/accounts/scripts/create_api_user.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
export API_USERNAME="admin_api"
44
export API_PASSWORD=$(cat /opt/cloudharness/resources/auth/api_user_password 2>/dev/null || echo "")
5-
export TMP_CLIENT="tmp_client"
5+
export TMP_CLIENT="tmp_api_client"
66
export TMP_CLIENT_SECRET="${KC_BOOTSTRAP_ADMIN_USERNAME}"
77

8+
sleep 120
9+
810
echo "create_api_user: waiting for Keycloak to start..."
911

1012
create_temporary_client() {

0 commit comments

Comments
 (0)