Refactoring
This commit is contained in:
33
check-realm.sh
Normal file
33
check-realm.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user