# Browser Flow and Identity providers

**URL:** <https://forum.keycloak.org/t/browser-flow-and-identity-providers/4102>\
**Category:** Getting advice\
**Created:** [August 4, 2020, 7:16am UTC](https://forum.keycloak.org/t/browser-flow-and-identity-providers/4102 "2020-08-04T07:16:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@Valentin](https://forum.keycloak.org/u/Valentin)\
**Post date:** [August 4, 2020, 7:16am UTC](https://forum.keycloak.org/t/browser-flow-and-identity-providers/4102/1 "2020-08-04T07:16:41Z")

</div>

Hello,

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:

 ![2020-08-03 16_58_18-Keycloak Admin Console - Firefox Developer Edition](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/6/64c41ab6647bb0a53cd0777455c9cb9c28a56017.png)

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
