Clean project: remove test files, debug logs, and add documentation

This commit is contained in:
dahoud
2025-10-05 13:41:33 +00:00
parent 96a17eadbd
commit 291847924c
438 changed files with 65754 additions and 32713 deletions

View File

@@ -8,7 +8,7 @@ echo ""
# Obtenir le token admin
echo "[INFO] Obtention du token d'administration..."
token_response=$(curl -s -X POST \
"http://192.168.1.145:8180/realms/master/protocol/openid-connect/token" \
"http://192.168.1.11:8180/realms/master/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin&password=admin&grant_type=password&client_id=admin-cli")
@@ -28,7 +28,7 @@ echo ""
get_user_id() {
local username="$1"
local response=$(curl -s -X GET \
"http://192.168.1.145:8180/admin/realms/unionflow/users?username=${username}" \
"http://192.168.1.11:8180/admin/realms/unionflow/users?username=${username}" \
-H "Authorization: Bearer ${token}")
echo "$response" | grep -o '"id":"[^"]*' | head -1 | cut -d'"' -f4
@@ -51,7 +51,7 @@ reset_password() {
# Réinitialiser le mot de passe
local response=$(curl -s -w "%{http_code}" -X PUT \
"http://192.168.1.145:8180/admin/realms/unionflow/users/${user_id}/reset-password" \
"http://192.168.1.11:8180/admin/realms/unionflow/users/${user_id}/reset-password" \
-H "Authorization: Bearer ${token}" \
-H "Content-Type: application/json" \
-d "{\"type\":\"password\",\"value\":\"${password}\",\"temporary\":false}")
@@ -101,7 +101,7 @@ if [ $success_count -gt 0 ]; then
echo "🧪 Test d'authentification avec marie.active..."
auth_response=$(curl -s -X POST \
"http://192.168.1.145:8180/realms/unionflow/protocol/openid-connect/token" \
"http://192.168.1.11:8180/realms/unionflow/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=marie.active&password=Marie123!&grant_type=password&client_id=unionflow-mobile")