Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
A regression test is still needed for crafted WebAuthn requests across account states to verify equivalent error handling and prevent credential-ID disclosure from recurring.
1 open issue
What changed in this PR
Removes the deprecated conditional-UI passkeys authenticator in favor of Keycloak’s default passkeys integration. It also removes username handling from the passwordless authenticator to address the account-enumeration weakness described in #55689.
Changes:
- Deletes the deprecated authenticator, factory, feature flag, template, and dedicated tests.
- Removes username-based user selection from passwordless WebAuthn submissions.
- Adds an upgrade notice directing users to the default passkeys integration.
| File | Description |
|---|---|
| themes/src/main/resources/theme/base/login/login-passkeys-conditional-authenticate.ftl | Deletes the deprecated login template. |
| testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/webauthn/passwordless/PasskeysConditionalUITest.java | Deletes tests for the removed authenticator. |
| services/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory | Removes the deprecated factory registration. |
| services/src/main/java/org/keycloak/authentication/authenticators/browser/WebAuthnPasswordlessAuthenticator.java | Removes username handling from assertion submissions. |
| services/src/main/java/org/keycloak/authentication/authenticators/browser/PasskeysConditionalUIAuthenticatorFactory.java | Deletes the deprecated factory. |
| services/src/main/java/org/keycloak/authentication/authenticators/browser/PasskeysConditionalUIAuthenticator.java | Deletes the deprecated authenticator. |
| docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc | Documents removal and migration guidance. |
| common/src/main/java/org/keycloak/common/Profile.java | Removes the deprecated feature flag. |
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
The account-enumeration fix lacks regression coverage for forged usernames submitted with failed or empty WebAuthn assertions, leaving equivalent responses and credential-ID nondisclosure across account states unverified.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.broker.KcSamlBrokerTest#emptyAttributeToRoleMapperTestKeycloak CI - FIPS IT (strict) org.keycloak.testsuite.broker.KcSamlBrokerTest#loginInResponseToEmptyKeycloak CI - FIPS IT (strict) org.keycloak.testsuite.broker.KcSamlBrokerTest#loginClientWithDotsInNameKeycloak CI - FIPS IT (strict) org.keycloak.testsuite.broker.KcSamlBrokerTest#loginInResponseToMismatchKeycloak CI - FIPS IT (strict) org.keycloak.testsuite.broker.KcSamlBrokerTest#roleWithDotsKeycloak CI - FIPS IT (strict) |
|
Rebased to fix the conflict. |
Closes keycloak#55689 Signed-off-by: rmartinc <rmartinc@redhat.com>
Closes keycloak#41574 Signed-off-by: rmartinc <rmartinc@redhat.com>
|
Rebased again to fix the documentataion issue. |

Closes #41574
Closes #55689
Removing the PasskeysConditionalUIAuthenticator and the feature. I think I'm removing all the stuff related to it (feature, factory and provider, test and the template file). I'm sending as two commits because there is a user enumeration in #55689 because of this. This way we can backport that commit only for 26.8 if needed.