PR 04 — Authentication : modèle de domaine #4
Labels
No labels
bug
enhancement
pr-split
question
security
transaction-matcher
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
momsse/octant#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tranche 4/13 du découpage de
feat/authentication(plan :docs/pr-split/feat-authentication.md).Branche :
split/04-authentication-model— Bloquée par : #3Taille : ~30 fichiers (sous-ensemble des 76 du package ; PRs 04+05 = ~12 700 lignes)
Périmètre (dans
packages/domain/authentication/src/)application/aggregates/:UserAggregate(decide par commande + fold) et ses testsapplication/entities/,application/value-objects/: User, Session, LinkedAccount (avec expiry des tokens), SecuritySignal…application/events/,application/commands/,application/errors/application/repositories/,application/read-models/,application/config/infrastructure/crypto.ts,infrastructure/encrypted-string.schema.ts(chiffrement at-rest des tokens OAuth via codec Schema)index.tsréduit aux exports ci-dessusFocus review
Invariants de l'agrégat User (cycle de vie suspend/anonymize/delete, expiry de session + sliding refresh, conflit de provider en erreur typée, garde terminal-status), modélisation des events (DateTimeUtcFromString pour le round-trip JSONB), codec de chiffrement.
Commits d'origine
4e4c43f,c78eaa6,ddd5979,4c4e7f8,fd25446,732269f,34abff8,042c0b1,06bdcc1,89debd8,8e1715d,a2ce298