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

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion common/src/main/java/org/keycloak/common/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public enum Feature {
ORGANIZATION("Organization support within realms", Type.DEFAULT),

PASSKEYS("Passkeys", Type.DEFAULT, Feature.WEB_AUTHN),
PASSKEYS_CONDITIONAL_UI_AUTHENTICATOR("Passkeys conditional UI authenticator", Type.DEPRECATED, FeatureUpdatePolicy.ROLLING_NO_UPGRADE, Feature.PASSKEYS),

USER_EVENT_METRICS("Collect metrics based on user events", Type.DEFAULT),
LDAP_METRICS("Collect metrics based on LDAP interactions", Type.EXPERIMENTAL),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1124,3 +1124,12 @@ The Twitter Identity Broker and the `twitter-broker` feature have been removed.
The broker relied on the unmaintained `twitter4j` library and Twitter's legacy OAuth 1.0a endpoints.
It was deprecated in {project_name} 26.7.
Use the generic OAuth 2.0 identity provider as a replacement; see the link:{upgradingGuide_link}#twitter-identity-broker-deprecated-for-removal[26.7 migration instructions] for details.

=== Passkeys Conditional UI Authenticator and its feature flag are removed
// https://github.com/keycloak/keycloak/issues/41574

The *Passkeys Conditional UI Authenticator* and its associated feature `passkeys-conditional-ui-authenticator` flag have been removed in this release.

This authenticator was an early implementation of passkeys support. It was deprecated in previous versions once passkeys were integrated directly into the default login pages, and it was maintained only for backward compatibility.

If you are still using this authenticator, migrate to the default link:{adminguide_link}#passkeys_server_administration_guide[Passkeys] integration in {project_name}.

This file was deleted.

This file was deleted.

8000
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import jakarta.ws.rs.core.MultivaluedMap;

import org.keycloak.WebAuthnConstants;
import org.keycloak.authentication.AuthenticationFlowContext;
import org.keycloak.authentication.RequiredActionFactory;
import org.keycloak.authentication.RequiredActionProvider;
Expand All @@ -37,9 +36,7 @@
import org.keycloak.models.UserModel;
import org.keycloak.models.WebAuthnPolicy;
import org.keycloak.models.credential.WebAuthnCredentialModel;
import org.keycloak.services.managers.AuthenticationManager;
import org.keycloak.sessions.AuthenticationSessionModel;
import org.keycloak.utils.StringUtil;

/**
* Authenticator for WebAuthn authentication with passwordless credential. This class is temporary and will be likely
Expand Down Expand Up @@ -99,20 +96,6 @@ public void action(AuthenticationFlowContext context) {
return;
}

String username = formData.getFirst(AuthenticationManager.FORM_USERNAME);
if (StringUtil.isNotBlank(username)) {
// user entered a username directly, check if user exists
boolean validUsername = validateUsername(context, formData, username);
if (!validUsername) {
context.attempted();
return;
}
} else if (!formData.containsKey(WebAuthnConstants.USER_HANDLE)) {
// user submitted an empty form without webauthn credential selection
context.attempted();
return;
}

// process rememberMe if present
Comment thread
rmartinc marked this conversation as resolved.
Resolved
if (formData.containsKey("rememberMe")) {
AuthenticatorUtils.processRememberMe(context, formData);
Expand All @@ -122,8 +105,4 @@ public void action(AuthenticationFlowContext context) {
super.action(context);
}

protected boolean validateUsername(AuthenticationFlowContext context, MultivaluedMap<String, String> formData, String username) {
return new UsernameForm().validateUser(context, formData);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ org.keycloak.authentication.authenticators.access.AllowAccessAuthenticatorFactor
org.keycloak.authentication.authenticators.sessionlimits.UserSessionLimitsAuthenticatorFactory
org.keycloak.authentication.authenticators.browser.RecoveryAuthnCodesFormAuthenticatorFactory
org.keycloak.organization.authentication.authenticators.browser.OrganizationAuthenticatorFactory
org.keycloak.authentication.authenticators.browser.PasskeysConditionalUIAuthenticatorFactory

This file was deleted.

Loading
Loading
0