8000 Do not add steps if feature disabled in default flows by rmartinc · Pull Request #40964 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Do not add steps if feature disabled in default flows #40964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rmartinc
Copy link
Contributor
@rmartinc rmartinc commented Jul 7, 2025

Allow login if a step is disabled even the authenticator is not enabled by profile
Closes #40954

When webauthn and recovery-codes were added to the default forms we didn't think that the features could be disabled. The PR just adds two things:

  1. The steps are just added if the features are enabled.
  2. The DefaultAuthenticationFlow.isConditionalAuthenticator checks the isEnabled before loading the authenticator. This way even having the steps disabled the login is allowed. Test added for this point.

Allow login if a step is disabled even the authenticator is not enabled by profile
Closes keycloak#40954

Signed-off-by: rmartinc <rmartinc@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keycloak 26.3.0 Regression: Failed to login if web-authn is disabled
1 participant
0