# On embedding Kibana Iframe to a portal, Kibana don't ask for any credentials even after Basic license enabled

**URL:** https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647
**Category:** Kibana
**Created:** [April 18, 2020, 1:35pm UTC](https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647 "2020-04-18T13:35:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nitin\_Khatri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_khatri/32/63891_2.png) [@Nitin\_Khatri](https://discuss.elastic.co/u/Nitin_Khatri)
#### Post date: [April 18, 2020, 1:35pm UTC](https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647/1 "2020-04-18T13:35:18Z")

</div>

I have a Dashboard embedded to a portal, but kibana is not asking for any credentials. Dashboard aslo works fine and can be seen on portal directly, Why??

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [April 19, 2020, 7:44pm UTC](https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647/2 "2020-04-19T19:44:20Z")

</div>

Hi!

This is something that is frequently posted on the forums here. A quick search might be helpful here:

[https://discuss.elastic.co/search?q=iframe+authentication](https://discuss.elastic.co/search?q=iframe+authentication)

Specifically these:

> [@](#):
>
> [Authenticating to iframe-embedded Kibana dashboard - #7 by weltenwort](https://discuss.elastic.co/t/authenticating-to-iframe-embedded-kibana-dashboard/71129/7)  
> Sorry for the delay, @rupaln and sorry for giving incomplete advice. I was able to get the Kibana server to respond with a cookie header by POSTing to /api/security/v1/login with a JSON request body of { "password": "", "username": "" } and the appropriate kbn-version: 5.1.1 header.

> [@Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/16):
>
> @tsullivan @Alex_Piggott @Francisca_Lima and others interested. Looks like you should use proxy\_set\_header Host $proxy\_host; instead of proxy\_set\_header Host $host; $proxy\_host takes host value from proxy\_pass directive, while $host will contain your server\_name. And apparently, Kibana from Elastic Cloud requires an original host to determine target cluster ID. Works for me without proxifying any additional X-Found-Cluster headers.

Looks like you should use proxy\_set\_header Host $proxy\_host; instead of proxy\_set\_header Host $host; $proxy\_host takes host value from proxy\_pass directive, while $host will contain your server\_name. And apparently, Kibana from Elastic Cloud requires an original host to determine target cluster ID. Works for me without proxifying any additional X-Found-Cluster headers.  
[/quote]

---

<div class="post-metadata">

### Author: ![Nitin\_Khatri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_khatri/32/63891_2.png) [@Nitin\_Khatri](https://discuss.elastic.co/u/Nitin_Khatri)
#### Post date: [April 19, 2020, 8:16pm UTC](https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647/3 "2020-04-19T20:16:55Z")

</div>

Thanks for the response. 🙂

---

<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: [May 17, 2020, 8:16pm UTC](https://discuss.elastic.co/t/on-embedding-kibana-iframe-to-a-portal-kibana-dont-ask-for-any-credentials-even-after-basic-license-enabled/228647/4 "2020-05-17T20:16:59Z")

</div>

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