feat(theme): username on passkey enrolment, activation email #10

Sammanfogat
supernaut sammanfogade 2 incheckningar från fix/passkey-username in i main 2026-10-09 21:30:59 +00:00
Ägare

Refs #2. Release as v26.8.0-3.

What

  • Passkey enrolment (webauthn-register.ftl, copied from keycloak.v2 26.8.0): a labelled, read-only username field (autocomplete="username webauthn"). Upstream already passes the right user.name to credentials.create; the page just showed no username.
  • Update password: the read-only username field gets a visible label through the upstream field.group macro.
  • Action email: activation or update wording.
    • A small provider (providers/email, id bitborg) extends FreeMarkerEmailTemplateProvider#sendExecuteActions and picks executeActionsActivateSubject when the required actions include VERIFY_EMAIL, otherwise executeActionsSubject. Selected at build time with KC_SPI_EMAIL_TEMPLATE__PROVIDER=bitborg.
    • Email theme bitborg overrides executeActions.ftl (html and text): activation or update body, steps as a list, sv and en messages.
    • "Aktivera ditt Bitborg-konto" / "Activate your Bitborg account", and "Uppdatera ditt Bitborg-konto" / "Update your Bitborg account".
  • Build: a Maven stage (JDK 21, pinned digest) runs mvn -B verify, so a failing test fails the image build.

Verified

Local run of the built image with start --optimized and an SMTP sink: both pages render the labelled field, and both emails arrive with the right subject and body. Unit tests: 3 pass.

Notes

  • emailTemplate is an internal SPI (KC-SERVICES0047). Re-check on each Keycloak minor.
  • The Maven image comes from docker.io. Mirroring it to our registry is a follow-up.
Refs #2. Release as `v26.8.0-3`. ## What - **Passkey enrolment** (`webauthn-register.ftl`, copied from keycloak.v2 26.8.0): a labelled, read-only username field (`autocomplete="username webauthn"`). Upstream already passes the right `user.name` to `credentials.create`; the page just showed no username. - **Update password**: the read-only username field gets a visible label through the upstream `field.group` macro. - **Action email**: activation or update wording. - A small provider (`providers/email`, id `bitborg`) extends `FreeMarkerEmailTemplateProvider#sendExecuteActions` and picks `executeActionsActivateSubject` when the required actions include `VERIFY_EMAIL`, otherwise `executeActionsSubject`. Selected at build time with `KC_SPI_EMAIL_TEMPLATE__PROVIDER=bitborg`. - Email theme `bitborg` overrides `executeActions.ftl` (html and text): activation or update body, steps as a list, sv and en messages. - "Aktivera ditt Bitborg-konto" / "Activate your Bitborg account", and "Uppdatera ditt Bitborg-konto" / "Update your Bitborg account". - **Build**: a Maven stage (JDK 21, pinned digest) runs `mvn -B verify`, so a failing test fails the image build. ## Verified Local run of the built image with `start --optimized` and an SMTP sink: both pages render the labelled field, and both emails arrive with the right subject and body. Unit tests: 3 pass. ## Notes - `emailTemplate` is an internal SPI (`KC-SERVICES0047`). Re-check on each Keycloak minor. - The Maven image comes from docker.io. Mirroring it to our registry is a follow-up.
supernaut lade till 2 incheckningar 2026-10-09 21:23:48 +00:00
The passkey page passed the right user.name to credentials.create but
showed no username. Add a read-only username field. Give the update-password
username field a visible label.

Refs #2
feat(email): activation and update wording for the action email
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m10s
d467430b0e
Refs #2
supernaut sammanfogade incheckning c90c8f8653 till main 2026-10-09 21:30:59 +00:00
supernaut tog bort grenen fix/passkey-username 2026-10-09 21:30:59 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak!10
Ingen beskrivning angiven.