Clean project: remove test files, debug logs, and add documentation
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
```
|
||||
|
||||
### 2. **Vérifier la Configuration Keycloak**
|
||||
- Ouvrez l'interface admin Keycloak : http://192.168.1.145:8180
|
||||
- Ouvrez l'interface admin Keycloak : http://192.168.1.11:8180
|
||||
- Connectez-vous avec admin/admin
|
||||
- Vérifiez que les rôles et utilisateurs ont été créés
|
||||
|
||||
@@ -70,12 +70,12 @@
|
||||
### Tester l'Authentification
|
||||
```bash
|
||||
# Test avec le compte existant
|
||||
curl -X POST "http://192.168.1.145:8180/realms/unionflow/protocol/openid-connect/token" \
|
||||
curl -X POST "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"
|
||||
|
||||
# Test avec un nouveau compte
|
||||
curl -X POST "http://192.168.1.145:8180/realms/unionflow/protocol/openid-connect/token" \
|
||||
curl -X POST "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"
|
||||
```
|
||||
@@ -83,11 +83,11 @@ curl -X POST "http://192.168.1.145:8180/realms/unionflow/protocol/openid-connect
|
||||
### Vérifier les Rôles
|
||||
```bash
|
||||
# Obtenir un token admin
|
||||
curl -X POST "http://192.168.1.145:8180/realms/master/protocol/openid-connect/token" \
|
||||
curl -X POST "http://192.168.1.11:8180/realms/master/protocol/openid-connect/token" \
|
||||
-d "username=admin&password=admin&grant_type=password&client_id=admin-cli"
|
||||
|
||||
# Lister les rôles
|
||||
curl -X GET "http://192.168.1.145:8180/admin/realms/unionflow/roles" \
|
||||
curl -X GET "http://192.168.1.11:8180/admin/realms/unionflow/roles" \
|
||||
-H "Authorization: Bearer [TOKEN]"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user