Clean project: remove test files, debug logs, and add documentation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
echo "Test authentification avec compte existant..."
|
||||
|
||||
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=test@unionflow.dev&password=test123&grant_type=password&client_id=unionflow-mobile")
|
||||
|
||||
@@ -15,7 +15,7 @@ if echo "$response" | grep -q "access_token"; then
|
||||
|
||||
# Obtenir les infos utilisateur
|
||||
user_info=$(curl -s -X GET \
|
||||
"http://192.168.1.145:8180/realms/unionflow/protocol/openid-connect/userinfo" \
|
||||
"http://192.168.1.11:8180/realms/unionflow/protocol/openid-connect/userinfo" \
|
||||
-H "Authorization: Bearer ${access_token}")
|
||||
|
||||
echo "Infos utilisateur: $user_info"
|
||||
|
||||
Reference in New Issue
Block a user