# Load kibana dashboard in iframe with API KEY authentication

**URL:** <https://discuss.elastic.co/t/load-kibana-dashboard-in-iframe-with-api-key-authentication/242970>\
**Category:** Kibana\
**Created:** [July 28, 2020, 8:15pm UTC](https://discuss.elastic.co/t/load-kibana-dashboard-in-iframe-with-api-key-authentication/242970 "2020-07-28T20:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Umair\_Baig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_umair_baig/32/69897_2.png) [@Muhammad\_Umair\_Baig](https://discuss.elastic.co/u/Muhammad_Umair_Baig)\
**Post date:** [July 28, 2020, 8:15pm UTC](https://discuss.elastic.co/t/load-kibana-dashboard-in-iframe-with-api-key-authentication/242970/1 "2020-07-28T20:15:51Z")

</div>

Hi Team,

I am wondering if we can achieve this. I did not find any topic related to this on which we are using api key authentication mechanism and load kibana dashboard in iframe

Kibana and elastic search version i am using is 7.8  
And also confirm if the api key is free to use. There would be no license cost applied if we use it.

Thank you,

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [July 28, 2020, 10:27pm UTC](https://discuss.elastic.co/t/load-kibana-dashboard-in-iframe-with-api-key-authentication/242970/2 "2020-07-28T22:27:39Z")

</div>

You can auto-authenticate to Kibana via an iframe if you set up a reverse proxy. This process is described in detail in [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091)

As described in the thread, this is done by setting an `Authorization` header in the proxy using basic auth for a Kibana user, but you can also use an api key. `ApiKey` authentication via http should be enabled by default, but you can read up [more on that in the docs](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#http-authentication).

API keys management falls under our free Basic license, which you [can read more about here](https://github.com/elastic/kibana/blob/master/licenses/ELASTIC-LICENSE.txt). You can get a full feature comparison showing what's included in Basic on our [subscriptions page](https://www.elastic.co/subscriptions).

---

<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:** [August 26, 2020, 10:33am UTC](https://discuss.elastic.co/t/load-kibana-dashboard-in-iframe-with-api-key-authentication/242970/5 "2020-08-26T10:33:38Z")

</div>

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