# Need to bypass keycloak login page for social login

**URL:** <https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605>\
**Category:** Getting advice\
**Tags:** admin-console, authentication, identity-brokering, saml\
**Created:** [February 16, 2024, 9:40am UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605 "2024-02-16T09:40:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vignesh](https://forum.keycloak.org/u/vignesh)\
**Post date:** [February 16, 2024, 9:40am UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605/1 "2024-02-16T09:40:13Z")

</div>

I Need to bypass keycloak login page for social login and show the popup for social media inside my react native app,For example if we are doing google login I need a popup inside my app and if I select on account it need work same as the browser does

---

<div class="post-metadata">

**Author:** ![appsec\_hero](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/appsec_hero/32/9788_2.png) [@appsec\_hero](https://forum.keycloak.org/u/appsec_hero)\
**Post date:** [February 16, 2024, 12:10pm UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605/2 "2024-02-16T12:10:27Z")

</div>

This can be achieved using the kc\_idp\_hint parameter inside the configured URL within your client application, for example :

```auto
https://keycloak/auth?client_id=<YOUR_CLIENT_ID>&redirect_uri=<THE_REDIRECT_URI>&response_type=code&scope=openid&kc_idp_hint=<the_name_that_you_give_to_the_idp>

```

This will automatically redirect the user to the external provider.

---

<div class="post-metadata">

**Author:** ![vignesh](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vignesh](https://forum.keycloak.org/u/vignesh)\
**Post date:** [February 16, 2024, 12:39pm UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605/3 "2024-02-16T12:39:36Z")

</div>

Thanks for your answer, But it using browser to login, but I need a popup of google account inside my app.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [February 16, 2024, 12:51pm UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605/4 "2024-02-16T12:51:00Z")

</div>

Having browser based authentication and redirects is a key feature of OAuth2 and OIDC in terms of secure authentication, there are reasons for this.  
“but I want” and “but I need” are none of these reasons.

---

<div class="post-metadata">

**Author:** ![appsec\_hero](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/appsec_hero/32/9788_2.png) [@appsec\_hero](https://forum.keycloak.org/u/appsec_hero)\
**Post date:** [February 18, 2024, 7:56pm UTC](https://forum.keycloak.org/t/need-to-bypass-keycloak-login-page-for-social-login/24605/5 "2024-02-18T19:56:21Z")

</div>

By “browser” you mean the current page of your app ? you can manage the OAuth flow inside a **popup**. The redirection will still happen but in a spawned popup that, before dissolving will pass the `access_token` or `Cookie` back to main tab (depending how you manage session within your app). As explained before, the `kc_idp_hint` will avoid displaying the list of external identity providers, and redirect the user directly to the external social provider.
