Browser Flow and Identity providers


I am trying to implement the following:

  • User enter username
  • If user is using identity provider (microsoft), redirect to IdP login
  • Else enter password / conditional OTP

So far I managed to do it with this custom Authentication Flow:

Is this the right way to achieve this?

I have one issue with this setup: the user has to re-enter his email on the microsoft site. Is there any way to send a login hint to identity providers?

Thanks for you help