docs(c4): accuracy audit — split L3 diagrams, add 6 new sub-diagrams, fix all stale content #448
@@ -517,12 +517,12 @@ sequenceDiagram
|
|||||||
participant Backend as Backend (Spring Boot)
|
participant Backend as Backend (Spring Boot)
|
||||||
participant DB as PostgreSQL
|
participant DB as PostgreSQL
|
||||||
|
|
||||||
User->>Browser: Enter username + password
|
User->>Browser: Enter email + password
|
||||||
Browser->>Frontend: POST /login (form action)
|
Browser->>Frontend: POST /login (form action)
|
||||||
Frontend->>Frontend: Base64 encode "user:password"
|
Frontend->>Frontend: Base64 encode "email:password"
|
||||||
Frontend->>Backend: GET /api/users/me<br/>Authorization: Basic <token>
|
Frontend->>Backend: GET /api/users/me<br/>Authorization: Basic <token>
|
||||||
Backend->>Backend: Spring Security parses Basic Auth
|
Backend->>Backend: Spring Security parses Basic Auth
|
||||||
Backend->>DB: SELECT user WHERE username=?
|
Backend->>DB: SELECT user WHERE email=?
|
||||||
DB-->>Backend: AppUser + groups + permissions
|
DB-->>Backend: AppUser + groups + permissions
|
||||||
Backend->>Backend: BCrypt.matches(password, hash)
|
Backend->>Backend: BCrypt.matches(password, hash)
|
||||||
Backend-->>Frontend: 200 OK — UserDTO
|
Backend-->>Frontend: 200 OK — UserDTO
|
||||||
|
|||||||
Reference in New Issue
Block a user