Clean project: remove test files, debug logs, and add documentation
This commit is contained in:
@@ -26,7 +26,7 @@ for username in "${!accounts[@]}"; do
|
||||
echo -n "Test $username... "
|
||||
|
||||
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=${username}&password=${password}&grant_type=password&client_id=unionflow-mobile")
|
||||
|
||||
@@ -39,7 +39,7 @@ for username in "${!accounts[@]}"; do
|
||||
|
||||
# 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}")
|
||||
|
||||
if echo "$user_info" | grep -q "email"; then
|
||||
|
||||
Reference in New Issue
Block a user