fix(auth): return to the portal origin after logout #329
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!329
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/logout-redirect-origin"
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 #311.
Why
Logout on staging ended on Keycloak's "invalid redirect" page.
post_logout_redirect_uricame fromPUBLIC_SITE_URL, which Vite inlines at build time. The CI image is built without it, so staging senthttps://www.bitborg.se/, which the staging client does not allow.What
buildLogoutUrluses the origin ofOIDC_REDIRECT_URI, which is read at runtime and already set per environment. Version 1.27.1.Tests
The logout test asserts the exact return URL. Unit tests, check and lint pass.
Prod is pinned, so this merge only reaches staging.