Clean project: remove test files, debug logs, and add documentation
This commit is contained in:
@@ -36,7 +36,7 @@ VISITEUR (0) ← Personne intéressée/Non-membre
|
||||
## 📦 Prérequis
|
||||
|
||||
### Environnement
|
||||
- **Keycloak** : Accessible sur `http://192.168.1.145:8180`
|
||||
- **Keycloak** : Accessible sur `http://192.168.1.11:8180`
|
||||
- **Realm** : `unionflow` (doit exister)
|
||||
- **Client** : `unionflow-mobile` (doit être configuré)
|
||||
- **Admin** : `admin/admin`
|
||||
@@ -62,7 +62,7 @@ chmod +x *.sh
|
||||
```bash
|
||||
# 1. Cloner ou télécharger les scripts
|
||||
# 2. Vérifier que Keycloak est accessible
|
||||
curl -I http://192.168.1.145:8180
|
||||
curl -I http://192.168.1.11:8180
|
||||
|
||||
# 3. Lancer la configuration complète
|
||||
./setup-unionflow-keycloak.sh
|
||||
@@ -105,7 +105,7 @@ curl -I http://192.168.1.145:8180
|
||||
```dart
|
||||
// Configuration Keycloak dans l'app mobile
|
||||
const keycloakConfig = {
|
||||
'serverUrl': 'http://192.168.1.145:8180',
|
||||
'serverUrl': 'http://192.168.1.11:8180',
|
||||
'realm': 'unionflow',
|
||||
'clientId': 'unionflow-mobile',
|
||||
'redirectUri': 'dev.lions.unionflow-mobile://auth/callback',
|
||||
@@ -167,7 +167,7 @@ Chaque rôle a accès à son dashboard spécifique :
|
||||
#### 1. Erreur de connexion Keycloak
|
||||
```bash
|
||||
# Vérifier que Keycloak est accessible
|
||||
curl -I http://192.168.1.145:8180
|
||||
curl -I http://192.168.1.11:8180
|
||||
|
||||
# Si erreur, vérifier l'IP et le port
|
||||
```
|
||||
@@ -175,7 +175,7 @@ curl -I http://192.168.1.145:8180
|
||||
#### 2. Token d'administration invalide
|
||||
```bash
|
||||
# Vérifier les credentials 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"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user