Skip to content

fix(auth): keycloak theme profile fields broken on Keycloak 26.7 - #377

Merged
SanjeevLakhwani merged 1 commit into
releases/v27from
fix/keycloak-theme-drop-alpine
Sep 28, 2026
Merged

SanjeevLakhwani merged 1 commit into
releases/v27from
fix/keycloak-theme-drop-alpine

Conversation

@SanjeevLakhwani

@SanjeevLakhwani SanjeevLakhwani commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Our custom Keycloak login theme is a fork of an older keycloak.v2 theme that used Alpine.js to render user-profile fields. Keycloak 26.7 (current bento_keycloak_dist) no longer ships Alpine.js, so on the Update Account Information (VERIFY_PROFILE) page, and on registration, no inputs were rendered, only "+ Add Email / First name / Last name" buttons. Users missing required profile attributes couldn't finish logging in.

The rfc4648 import map entry was also pointing at a path that now 404s (node_modules/… → vendor/…).

To recreate issue

Create a new user without email and name and login into public/web with that user.

Changes

  • user-profile-commons.ftl: render inputs server-side (matching upstream 26.7). Existing values are now pre-filled, and multivalued attributes get one input per value.
  • template.ftl: remove Alpine import/Alpine.start() and dead x-data markup; fix the rfc4648 import path.

…theme

Keycloak 26.7 no longer ships Alpine.js, so the Alpine-driven user
profile fields (VERIFY_PROFILE, register) rendered only 'Add <field>'
buttons with no inputs, blocking login for users missing required
attributes. Render inputs server-side as upstream keycloak.v2 does,
and fix the rfc4648 import map path (moved to vendor/).
@SanjeevLakhwani
SanjeevLakhwani merged commit ee66bc8 into releases/v27 Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants