Files
pruefwerk/compliance-dashboard
Sharang ParnerkarandClaude Opus 5.5 ecee3b5b50
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Canceled after 4m51s
fix(dashboard): an expired sign-in sends you to the login instead of failing every page
On staging every page said "konnten nicht geladen werden" while the data
was intact: the agent rejected each request with an expired token, because
the dashboard's token refresh was refused by Keycloak (invalid_grant) and it
kept sending the stale token.

- One refresh at a time per session. A page's parallel requests all
  refreshed with the same refresh token, and Keycloak, which rotates it,
  rejects every one after the first. A request that waited uses the token
  the other one got.
- A refused refresh ends the sign-in: the session's user is removed and the
  server function answers session_expired. The app shell checks the sign-in
  every minute and on such an answer goes to the login; the auth check itself
  counts an unrefreshable sign-in as signed out.
- A failure that is not about the sign-in shows its reason and a retry on
  the targets page, instead of a bare "could not be loaded".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-28 22:27:45 +02:00
..