From e63b0185ef0c4091bcee438f228021f2421df554 Mon Sep 17 00:00:00 2001 From: Blomios Date: Sun, 19 Jul 2026 10:23:42 +0200 Subject: [PATCH] =?UTF-8?q?docs(ideai):=20met=20=C3=A0=20jour=20le=20ticke?= =?UTF-8?q?t=20#48=20apr=C3=A8s=20l'API=20de=20synchronisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- .ideai/tickets/48/carnet.md | 9 ++++++--- .ideai/tickets/48/issue.md | 8 ++++---- .ideai/tickets/index.json | 4 ++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.ideai/tickets/48/carnet.md b/.ideai/tickets/48/carnet.md index 0847406..103b593 100644 --- a/.ideai/tickets/48/carnet.md +++ b/.ideai/tickets/48/carnet.md @@ -1,6 +1,9 @@ --- issueRef: "#48" -version: 1 -updatedBy: {"kind":"agent","agent_id":"f8f40941-ecf7-4830-b9de-8818a099f448"} -updatedAt: 1784411990980 +version: 4 +updatedBy: {"kind":"agent","agent_id":"57695b92-24d0-4876-837c-76116e70a6ae"} +updatedAt: 1784448980586 --- +Logique d'auth (register/login/logout/authenticate) et middleware Bearer testés avec repositories fake en mémoire (10/10 tests verts), `dart analyze` clean. Non vérifié en conditions réelles : sandbox Main sans accès Docker → endpoints HTTP register/login/logout jamais exercés de bout en bout contre un vrai PostgreSQL. À faire avant mise en prod : une fois #52 livré, `docker compose up -d`, puis tester manuellement `POST /auth/register`, `/auth/login`, `/auth/logout` via curl contre le serveur réel. + +Écart assumé vs description initiale : le ticket mentionnait `POST /auth/refresh` et `GET /me`, mais la mémoire d'architecture `gametime-server-architecture-sync-sharing` (validée par Architect) a simplifié en un modèle à token opaque unique avec expiration (pas de refresh token séparé). `GET /me` n'a pas été livré non plus — le middleware expose déjà l'utilisateur authentifié en interne pour #50/#51, mais aucun endpoint public ne l'ex48pose. À réévaluer si un client a besoin d'un `GET /me` ou d'un refresh silencieux plus tard (ticket séparé si nécessaire). \ No newline at end of file diff --git a/.ideai/tickets/48/issue.md b/.ideai/tickets/48/issue.md index 1524466..8a95d3c 100644 --- a/.ideai/tickets/48/issue.md +++ b/.ideai/tickets/48/issue.md @@ -2,15 +2,15 @@ id: "6df36ec4-94cd-438b-a2ee-10c022f6848a" number: 48 title: "[Server] Auth comptes utilisateurs et tokens API" -status: "open" +status: "qa" priority: "low" sprint: null links: [{"target":"#46","kind":"relatesTo"},{"target":"#47","kind":"dependsOn"}] agentRefs: [] createdBy: {"kind":"agent","agent_id":"f8f40941-ecf7-4830-b9de-8818a099f448"} -updatedBy: {"kind":"agent","agent_id":"f8f40941-ecf7-4830-b9de-8818a099f448"} +updatedBy: {"kind":"agent","agent_id":"57695b92-24d0-4876-837c-76116e70a6ae"} createdAt: 1784411990980 -updatedAt: 1784411990980 -version: 1 +updatedAt: 1784448980586 +version: 4 --- Implémenter le domaine serveur `UserAccount` et `AuthSession` : création de compte, connexion, hash de mot de passe Argon2id ou bcrypt, émission de tokens d'accès + refresh tokens, middleware d'auth API, révocation/logout. Stockage PostgreSQL. Endpoints attendus : `POST /auth/register`, `POST /auth/login`, `POST /auth/refresh`, `POST /auth/logout`, `GET /me`. Aucun écran client dans ce ticket. \ No newline at end of file diff --git a/.ideai/tickets/index.json b/.ideai/tickets/index.json index f778346..3f650fb 100644 --- a/.ideai/tickets/index.json +++ b/.ideai/tickets/index.json @@ -547,11 +547,11 @@ "issueRef": "#48", "path": "48", "title": "[Server] Auth comptes utilisateurs et tokens API", - "status": "open", + "status": "qa", "priority": "low", "sprint": null, "assignedAgentIds": [], - "updatedAt": 1784411990980 + "updatedAt": 1784448980586 }, { "issueRef": "#49",