Share a subflow between "first broker login" and "browser flow"

Cross posted at https://groups.google.com/g/keycloak-user/c/wX60ALF0Qic.

Hello all,

My “browser flow” is customized to allow password and webauthn authentication.
The built-in “first broker login flow” has a step “Username Password Form for reauthentication” (from org.keycloak.authentication.authenticators.broker.IdpUsernamePasswordFormFactory).

I’d like the user to be able to perform “first broker login flow” reauthentication, the same way he can do it with the browser flow. i.e. The user should be able to reauthenticate during the “first broker login flow” with password or webauthn.

The naive way would be to configure “browser flow” and “first broker login flow” the same way. i.e. to duplicate configuration.

I’d like to avoid duplicating the configuration, since the latter may need to be changed again in the future. Is there a way to share common steps between 2 root flows?

There is currently no support for sharing a subflow in multiple other flows.