You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update OAuth callback endpoint from /consent to /oauth/callback
- Update SECURITY.md with new endpoint path and validation details
- Update docker.md with new ENEDIS_REDIRECT_URI examples
- Update gateway.md flow documentation
🤖 Generated with [Claude Code](https://claude.ai/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/features-spec/05-gateway.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Mettre à disposition une API passerelle entre les utilisateurs finaux et Enedis
20
20
2. L'utilisateur crée un compte sur la passerelle (email, mot de passe).
21
21
3. Depuis son tableau de bord, l'utilisateur clique sur **"Consentement Enedis"** (pas besoin de saisir de PDL).
22
22
4. La passerelle génère l'URL d'autorisation Enedis avec `state=user_id` :<br>`https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize?client_id=XXXXXXXX&duration=P36M&response_type=code&state={user_id}`
23
-
5. Après validation du consentement sur le portail Enedis, celui-ci redirige vers `http://localhost:8000/consent?code=XXX&state={user_id}`.
23
+
5. Après validation du consentement sur le portail Enedis, celui-ci redirige vers `http://localhost:8000/oauth/callback?code=XXX&state={user_id}&usage_point_id={pdl}`.
24
24
6. La passerelle :
25
25
- Échange le code contre un token OAuth
26
26
- Appelle l'API Enedis `/customers_upc/v5/usage_points` pour récupérer **tous les PDL** du compte
0 commit comments