Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
14.0.0
-
-
NEW
-
NEW
Description
Similar to https://issues.redhat.com/browse/KEYCLOAK-15440, but still affects newer versions (tested on 14.0.0). When using a flow containing a Username Form and a sub-flow with multiple authentication methods (one of them being Password Form), Password Form is not offered as an alternative. When it is set as required, the form appears correctly and logging in works. It seems AuthenticationSelectionResolver does not consider the method applicable, but uses it anyway when it has no choice.
DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-20) check execution: 'auth-password-form', requirement: 'ALTERNATIVE'
{{ DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-20) authenticator: auth-password-form}}
{{ DEBUG [org.keycloak.authentication.AuthenticationSelectionResolver] (default task-20) Going through the flow 'Authentication Flow' for adding executions}}
{{ DEBUG [org.keycloak.authentication.AuthenticationSelectionResolver] (default task-20) Selections when trying execution 'auth-password-form' : [ authSelection - webauthn-authenticator-passwordless]}}
{{ DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-20) invoke authenticator.authenticate: webauthn-authenticator-passwordless}}