# How to Auto Login Kibana Dashboard which embedded in Iframe

**URL:** <https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975>\
**Category:** Kibana\
**Created:** [October 22, 2020, 9:34am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975 "2020-10-22T09:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_Chaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_chaudhari/32/77664_2.png) [@Ram\_Chaudhari](https://discuss.elastic.co/u/Ram_Chaudhari)\
**Post date:** [October 22, 2020, 9:34am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975/1 "2020-10-22T09:34:13Z")

</div>

I am using angular 8 for front end application where we have dashboard page where a iframe of kibana dashboard will be present. If user logins to application, he should automatically get logged in to kibana also. How can I do it? Is there a way to attach a token to url we are passing to iframe or any other way? The users are created dynamically and will have limited access to dashboard. Can some one guide me as I am pretty new to ELK stack and the info I read online has also got me pretty confused.

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [October 22, 2020, 1:55pm UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975/2 "2020-10-22T13:55:14Z")

</div>

You can pass in an authorization header as described in this thread: [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/4)

It's a little old but should still be largely accurate.

---

<div class="post-metadata">

**Author:** ![Ram\_Chaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_chaudhari/32/77664_2.png) [@Ram\_Chaudhari](https://discuss.elastic.co/u/Ram_Chaudhari)\
**Post date:** [October 23, 2020, 5:05am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975/3 "2020-10-23T05:05:07Z")

</div>

We can achieve this with the user added in elasticsearch. But I have user login data on another db. How can we dynamically add users and set there roles in elastic?

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [October 27, 2020, 1:23am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975/4 "2020-10-27T01:23:35Z")

</div>

You can use the user APIs to create/etc users

> **[Security APIs | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/security-api.html#security-user-apis)**

---

<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:** [November 24, 2020, 1:23am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/252975/5 "2020-11-24T01:23:37Z")

</div>

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