Custom flow with selection UI

Cristiano Palazzi cristianopalazzi at
Wed Nov 17 15:27:08 UTC 2021

Hi everybody,

I'm working on an IDP v4 that should be able to provide a selection screen
for choosing a login method (External or SAML).

I'm following the instructions reported here
integrate a custom flow in the MFA flow.

I defined a custom flow and a selection screen with two buttons.
Every button uses a custom event to signal the login method.


<util:map id="shibboleth.authn.MFA.TransitionMap">

<entry key="">

<bean parent="shibboleth.authn.MFA.Transition"
p:nextFlow="custom/methodChooser" />

<entry key="custom/methodChooser">
        <bean parent="shibboleth.authn.MFA.Transition">
            <property name="nextFlowStrategyMap">
                    <entry key="chooseExternal" value="authn/External" />
                    <entry key="choosePassword" value="authn/Password"/>
//it will be replaced by the SAML login flow

I'm using a simple servlet to provide the External authentication and
a HTPasswdCredentialValidator to test the implementation.

Everything seems to work fine but I still have a couple of doubts about
this solution:
- Is there a better way to provide a login selection method?
- I noticed that after choosing the password method, the browser back
button causes a stale request error (e.g. A problem occurred restoring the
flow execution with key 'e1s2').
 I haven't found yet a solution to avoid this error.

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list