fix(auth): link back to the portal after enrolment #330
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!330
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/action-email-return"
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
After completing the enrolment link, Keycloak showed "Ditt konto har uppdaterats" with no way back. The action email was sent without
client_idandredirect_uri.What
sendActionEmail(sign-up and resend) sendsclient_idandredirect_uri=<origin of OIDC_REDIRECT_URI>/account. Keycloak's done page then links back to the portal account page. The origin comes from the runtime redirect URI, not the build-timeSITE_URL. Version 1.27.2.Depends on
The realm must allow
<portal>/accountas a redirect forbitborg-web(bitborg/bitborg-infra branchfix/web-client-account-redirect), or Keycloak answers 400. Applied on staging. Prod gets it with the prod realm at cutover; prod web is pinned until then.Verified
On staging:
execute-actions-emailwith these params returns 204; a foreignredirect_urireturns 400. Unit tests assert both params.