<div dir="ltr">From the keycloak documentation and <a href="https://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html">https://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html</a><div><br></div><div>it is not very clear to me what the OPTIONAL setting for an execution mean.</div><div><br></div><div>For example, when we have the following:</div><div><br></div><div><a id="d4e3847" style="color:rgb(51,51,51);font-family:'Lucida Grande',Geneva,Verdana,Arial,sans-serif;font-size:12px;line-height:18px;text-align:justify"><pre class="" style="font-size:0.9em;font-family:courrier,monospace;overflow:auto;padding:5px 15px 5px 25px;border:1px solid rgb(204,204,204);background-color:rgb(245,245,245)">Forms Subflow - ALTERNATIVE
Username/Password Form - REQUIRED
OTP Password Form - OPTIONAL</pre></a></div><div><br></div><div><br></div><div>When can it enter the Optional OTP form? Do we need to add some code (some condition ?) in the UsernamePasswordAuthentication Code, so it enters the optional OTP form authenticator? Or something else? I am not so clear about the concept of this optional field and how to enter it. Can someone please explain this in detail?</div></div>