Amazon Ergo 1.0 · Heavy

fixing-re-authentication-with-passkeys-keycloak

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

The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.

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

Published comments (2)

mediumbugtestsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/webauthn/passwordless/PasskeysUsernameFormTest.java:206-209

Password-page test misses passkey allowCredentials inputs — The test can pass even if `authenticators` is never populated, leaving `allowCredentials` empty and password-page passkey login broken for non-discoverable credentials. Assert the `authn_select` form and `authn_use_chk` inputs from `passkeys.ftl`, or authenticate with the passkey from that page.

mediumbugtestsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/webauthn/passwordless/PasskeysUsernamePasswordFormTest.java:363-372

Re-authentication test misses username field state after failed password — The username field could reappear after a failed password if `AuthenticatorUtils.setupReauthenticationInUsernamePasswordFormError` were removed, and this test would still pass. Assert that the visible `username` input is absent, or that the re-authentication info message is still present.

Gold bugs found (0)

None.

Gold bugs missed (2)

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.
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.