34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
echo "🔍 Vérification du realm unionflow..."
|
|
|
|
response=$(curl -s "http://localhost:8180/realms/unionflow")
|
|
|
|
if echo "$response" | grep -q "unionflow"; then
|
|
echo "✅ Le realm unionflow existe"
|
|
echo ""
|
|
echo "🧪 Test rapide d'un compte..."
|
|
|
|
auth_response=$(curl -s -X POST \
|
|
"http://localhost: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")
|
|
|
|
if echo "$auth_response" | grep -q "access_token"; then
|
|
echo "✅ Le compte marie.active fonctionne !"
|
|
echo ""
|
|
echo "🎉 CONFIGURATION RÉUSSIE ! Tous les comptes devraient fonctionner."
|
|
echo " Exécutez: ./verify-final.sh pour tester tous les comptes"
|
|
else
|
|
echo "❌ Le compte marie.active ne fonctionne pas encore"
|
|
echo " Réponse: $auth_response"
|
|
echo ""
|
|
echo "📋 Suivez les instructions du script setup-direct.sh"
|
|
fi
|
|
else
|
|
echo "❌ Le realm unionflow n'existe pas"
|
|
echo ""
|
|
echo "📋 Suivez les instructions du script setup-direct.sh"
|
|
echo " Ou ouvrez: http://localhost:8180"
|
|
fi
|