fix(account): refresh the session groups from keycloak on the account page #361
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web!361
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/refresh-groups-after-payment"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Refs bitborg/bitborg-payment#131
The session cookie keeps the groups from the sign-in ID token. After a payment, billing moves the user from
tier_trialtotier_proin Keycloak. The account page kept showing the trial plan until the user signed out and in again. Seen on staging on 2026-10-11.The account page now reads the user's groups with the portal's Keycloak admin client, by the session
sub. When they differ from the session, the page re-signs the session cookie before the panel island renders. The same refresh covers downgrades, such as a trial ending or a cancelled plan.GET /users/{id}/groupsper account page view. No other page calls Keycloak.Tests: unit tests for
getUserGroupsandrefreshGroups, written failing first.pnpm test,check,lint,build, e2e pass. The account page itself needs a real sign-in, so staging is the end-to-end proof.