8000 Remove PasskeysConditionalUIAuthenticator and the feature by rmartinc · Pull Request #55701 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Remove PasskeysConditionalUIAuthenticator and the feature - #55701

Open
rmartinc wants to merge 2 commits into
keycloak:mainfrom
rmartinc:issue-41574
Open

rmartinc wants to merge 2 commits into
keycloak:mainfrom
rmartinc:issue-41574

Conversation

@rmartinc
@rmartinc rmartinc commented Dec 1, 2026 •
Copy link
Copy Markdown
Contributor

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.

@rmartinc
rmartinc requested review from a team as code owners December 1, 2026 15:35
Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:35
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:39
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If 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#emptyAttributeToRoleMapperTest

Keycloak CI - FIPS IT (strict)

java.lang.AssertionError: 

Expected: response status code matches is <200>
     but: was <HttpResponseProxy{HTTP/1.1 400 Bad Request [content-length: 3561, Cache-Control: no-cache, Content-Language: en, Content-Security-Policy: frame-src 'self'; frame-ancestors 'self'; object-src 'none';, Content-Type: text/html;charset=utf-8, Referrer-Policy: no-referrer, Strict-Transport-Security: max-age=31536000; includeSubDomains, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, X-Robots-Tag: none] ResponseEntityProxy{[Content-Type: text/html;charset=utf-8,Content-Length: 3561,Chunked: false]}}> with entity <!DOCTYPE html>
<html class="login-pf" lang="en">
...

Report flaky test

org.keycloak.testsuite.broker.KcSamlBrokerTest#loginInResponseToEmpty

Keycloak CI - FIPS IT (strict)

jakarta.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:250)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.DefaultEntityExtractorFactory$3.extractEntity(DefaultEntityExtractorFactory.java:41)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invokeSync(ClientInvoker.java:146)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
...

Report flaky test

org.keycloak.testsuite.broker.KcSamlBrokerTest#loginClientWithDotsInName

Keycloak CI - FIPS IT (strict)

jakarta.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:250)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.DefaultEntityExtractorFactory$3.extractEntity(DefaultEntityExtractorFactory.java:41)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invokeSync(ClientInvoker.java:146)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
...

Report flaky test

org.keycloak.testsuite.broker.KcSamlBrokerTest#loginInResponseToMismatch

Keycloak CI - FIPS IT (strict)

jakarta.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:250)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.DefaultEntityExtractorFactory$3.extractEntity(DefaultEntityExtractorFactory.java:41)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invokeSync(ClientInvoker.java:146)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
...

Report flaky test

org.keycloak.testsuite.broker.KcSamlBrokerTest#roleWithDots

Keycloak CI - FIPS IT (strict)

jakarta.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:250)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.DefaultEntityExtractorFactory$3.extractEntity(DefaultEntityExtractorFactory.java:41)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invokeSync(ClientInvoker.java:146)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
...

Report flaky test

mabartos
mabartos previously approved these changes Dec 2, 2026
@mabartos mabartos left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copilot AI balanced review requested due to automatic review settings December 4, 2026 09:35
@rmartinc
rmartinc commented Dec 4, 2026
Copy link
Copy Markdown
Contributor Author

Rebased to fix the conflict.

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the deprecated passkeys authenticator removal and associated migration guidance.

No open issues 🎉

Review effort: Balanced

Closes keycloak#55689

Signed-off-by: rmartinc <rmartinc@redhat.com>
Closes keycloak#41574

Signed-off-by: rmartinc <rmartinc@redhat.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 10:28
@rmartinc
rmartinc commented Dec 4, 2026
Copy link
Copy Markdown
Contributor Author

Rebased again to fix the documentataion issue.

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the deprecated passkeys authenticator removal.

No open issues 🎉

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants

0