# Need to bypass authentication in iframe

**URL:** <https://discuss.elastic.co/t/need-to-bypass-authentication-in-iframe/299175>\
**Category:** Kibana\
**Created:** [March 9, 2022, 6:49am UTC](https://discuss.elastic.co/t/need-to-bypass-authentication-in-iframe/299175 "2022-03-09T06:49:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [March 9, 2022, 6:49am UTC](https://discuss.elastic.co/t/need-to-bypass-authentication-in-iframe/299175/1 "2022-03-09T06:49:38Z")

</div>

I have an iframe which I need to embed in our application, but whenever I tried to access the iframe a login page comes. I need to bypass this authentication as this page will be accessed by client. I have found same questions o this forum but I'm unable to achieve this. Can anyone help in this?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [March 9, 2022, 5:39pm UTC](https://discuss.elastic.co/t/need-to-bypass-authentication-in-iframe/299175/2 "2022-03-09T17:39:04Z")

</div>

Take a look to this great answer by @stephenb on how to grant anonymous access to Kibana resources:

> [@Anonymous Kibana Users](https://discuss.elastic.co/t/anonymous-kibana-users/270071/9):
>
> @caitlyn.carlisle Ok we have it slight_smile If I understand correctly, What you want to accomplish is enable the ability for a user to anonymous login to view Kibana dashboards etc. That is supported in Elastic Cloud, what is not supported is underlying anonymous access to elasticsearch. That is where the confusion lay. So this is how you do it. Reference [Here](https://www.elastic.co/guide/en/kibana/7.12/kibana-authentication.html#anonymous-authentication).. and there is even a little video on it [here](https://www.elastic.co/blog/whats-new-kibana-7-11-0-alerting-generally-available) . Note the docs link to 7.11 so make sure you use the latest. First create the use…

Once you have an anonymous user set up, and given access to it the desired resources, in a dashboard you want to share you need to generate a `Public URL` so it bypasses the login page

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/c/acc05640646af15fd91d2ffd88488fc5531f7f4e.png)

You can check a working example of a published dashboard visiting [https://ela.st/cumbre-vieja-eruption](https://ela.st/cumbre-vieja-eruption)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 6, 2022, 5:39pm UTC](https://discuss.elastic.co/t/need-to-bypass-authentication-in-iframe/299175/3 "2022-04-06T17:39:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
