GLM-5.3 Flash · Balanced

fixing-re-authentication-with-passkeys-keycloak

Keycloak · Java · S · 30–99 lines · 6 files

The normal review, with one generalist agent. Judge: Claude Opus 5.5.

Gold bugs found
1 of 2
Comments published
1
Comments matching a bug
1
Comments not matching
0
Cost of this PR
$0.115

Published comments (1)

highbugthemes/src/main/resources/theme/keycloak.v2/login/login-password.ftl:15-18

Base theme login-password.ftl missing passkey conditional-UI include — Passkey re-authentication silently fails on themes inheriting the base theme, since `PasswordForm.authenticate` sets up WebAuthn context but the page renders no passkey button. Add the `passkeys` import and `<@passkeys.conditionalUIData />` here, as base `login.ftl` and `login-username.ftl` already do.

Gold bugs found (1)

highPasswordForm now accepts passkey-only users, but only the keycloak.v2 login-password.ftl renders the passkeys conditional UI; the base template (used by the legacy keycloak theme) does not, so a passkey-only user is shown a password-only form they cannot complete.

Gold bugs missed (1)

mediumlogin-password.ftl now renders the passkeys macro, making reachable an error path where fillContextForm sets enableWebAuthnConditionalUI but returns before setting isUserIdentified/userVerification, so passkeys.ftl fails to render and a FreeMarker error replaces the login page.