diff --git a/config_job.tf b/config_job.tf index 05b8474..327088a 100644 --- a/config_job.tf +++ b/config_job.tf @@ -89,11 +89,6 @@ GRANT local realm_name=$1 echo "Creating realm: $realm_name" - # Check if realm exists - curl -s -o /dev/null -w %%{http_code} \ - -H "Authorization: Bearer $KC_TOKEN" \ - "$KC_URL/auth/admin/realms/$realm_name" - # Create realm curl -s -X POST \ -H "Authorization: Bearer $KC_TOKEN" \ @@ -113,11 +108,6 @@ GRANT echo "Creating admin user: $username in realm $realm" - # Check if user exists - curl -s \ - -H "Authorization: Bearer $KC_TOKEN" \ - "$KC_URL/auth/admin/realms/$realm/users?username=$username" - # Create user curl -s -X POST \ -H "Authorization: Bearer $KC_TOKEN" \ @@ -227,8 +217,6 @@ GRANT curl -s \ -H "Authorization: Bearer $KC_TOKEN" \ "$KC_URL/auth/admin/realms/$realm/clients?clientId=$client_id" - - echo $id } # Add protocol mapper to client