Another fix

This commit is contained in:
2026-05-22 15:06:31 +02:00
parent 9402344f77
commit 6950ec1c36

View File

@@ -317,7 +317,7 @@ sequenceDiagram
actor User actor User
participant FE as Frontend (Yew) participant FE as Frontend (Yew)
participant BE as Backend (Axum) participant BE as Backend (Axum)
participant DB@{"type": "database", "alias": "Database"} participant DB as Database@{"type": "database"}
Note over User, DB: Authentication & Cookie Session Setup Note over User, DB: Authentication & Cookie Session Setup
User->>FE: Enter username & password User->>FE: Enter username & password
@@ -328,7 +328,7 @@ sequenceDiagram
alt Password Valid alt Password Valid
Note over BE: Generate JWT token containing claims (sub: user_id) Note over BE: Generate JWT token containing claims (sub: user_id)
Note over BE: Build HttpOnly, Secure, Lax cookie 'token' Note over BE: Build HttpOnly, Secure, Lax cookie 'token'
BE-->>FE: HTTP 200 OK {"status": "success", "token": "...", "user": {...}}<br/>Header: Set-Cookie: token=...; Path=/; HttpOnly; SameSite=Lax BE-->>FE: "HTTP 200 OK {"status": "success", "token": "...", "user": {...}}<br/>Header: Set-Cookie: token=...; Path=/; HttpOnly; SameSite=Lax"
Note over FE: Save auth state to global context Note over FE: Save auth state to global context
FE-->>User: Redirect to Dashboard / Home FE-->>User: Redirect to Dashboard / Home
else Password Invalid else Password Invalid