I created a custom authentication SPI for Email and SMS OTP.
And I put those providers in parallel into the authentication flow just like below.
Because each otp step is using alternative option, the Keycloak automatically creates the link “Try Another Way” as shown above.
This is not what I wanted. I want to show the “Try Another Way” link depending on the user’s condition.
But because of the Keycloak default setting, (rendering the “Try Another Way” all time if the authentication step is alternative.)
regardless of my freemarker template, the Keycloak always shows the “Try Another Way”.
How can I remove or disable the automatic created link “Try Another Way”?