# Keycloak login using an iframe within the website rather than the redirection to the keycloak login page

**URL:** <https://forum.keycloak.org/t/keycloak-login-using-an-iframe-within-the-website-rather-than-the-redirection-to-the-keycloak-login-page/2281>\
**Category:** Getting advice\
**Tags:** oidc\
**Created:** [April 22, 2020, 8:11am UTC](https://forum.keycloak.org/t/keycloak-login-using-an-iframe-within-the-website-rather-than-the-redirection-to-the-keycloak-login-page/2281 "2020-04-22T08:11:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![renjith](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@renjith](https://forum.keycloak.org/u/renjith)\
**Post date:** [April 22, 2020, 8:11am UTC](https://forum.keycloak.org/t/keycloak-login-using-an-iframe-within-the-website-rather-than-the-redirection-to-the-keycloak-login-page/2281/1 "2020-04-22T08:11:04Z")

</div>

Hi,  
I am looking for a solution to avoid the redirection to the keycloak login page thus indeed avoids the exposure of keycloak server url. Is there any other way of integrating the keycloak login to the website itself. I have read the direct grant option. I am looking for another kind of option like if we can load the keycloak login page url in an iframe within the website.

Thanks in advance.

Renjith

---

<div class="post-metadata">

**Author:** ![marquez2012](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/marquez2012/32/3295_2.png) [@marquez2012](https://forum.keycloak.org/u/marquez2012)\
**Post date:** [June 7, 2021, 5:03pm UTC](https://forum.keycloak.org/t/keycloak-login-using-an-iframe-within-the-website-rather-than-the-redirection-to-the-keycloak-login-page/2281/2 "2021-06-07T17:03:10Z")

</div>

Any news on this? I’m having the same issue.

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [June 8, 2021, 5:04pm UTC](https://forum.keycloak.org/t/keycloak-login-using-an-iframe-within-the-website-rather-than-the-redirection-to-the-keycloak-login-page/2281/3 "2021-06-08T17:04:54Z")

</div>

Keycloak isn’t really built to support this currently. Possibly in future versions.
