# Auto-login in iFrame using nginx proxy

**URL:** <https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322>\
**Category:** Kibana\
**Created:** [December 2, 2020, 8:37am UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322 "2020-12-02T08:37:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Docrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/docrom/32/78004_2.png) [@Docrom](https://discuss.elastic.co/u/Docrom)\
**Post date:** [December 2, 2020, 8:37am UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322/1 "2020-12-02T08:37:54Z")

</div>

Hello everyone,

I'm trying to follow the [post here](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/4) in order login to my Kibana iFrame via nginx as proxy but I fail.

I'm not really good with proxies and nginx in particular so maybe I'm missing something important that I don't see.

I use a VM to host my web page where the iFrame is, with apache, and then I use nginx proxy to rename the url and I also want to authenticate through it to be transparent for users. But that doesn't log me in. Everything seems to work except this. The most important thing 😃

Here's my nginx conf, it is in the conf.d directory :

```auto
location /kibana-dashboard/ {
         proxy_set_header Host $proxy_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header Authorization "Basic UxXxZXJBlaBlaBladmJ8cg";
         proxy_pass http://my-virtual-machine/web-page/;

```

Concerning the nginx.conf, it's basic, with default parameters, I didn't change anything there.

Can I put the server parameters in my conf.d file or should it only be in the nginx.conf ? Because in the other topic, I can see some server parameters like ssl things etc..

I know it is blocked at the authentification but I cannot find any logs that says why, any ideas how to debug it ?

Thanks in advance,  
Cheers.

---

<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:** [December 7, 2020, 12:25pm UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322/2 "2020-12-07T12:25:17Z")

</div>

Can't help to your question directly but I found worth noting that anonymous access is landing to Kibana 7.11 very soon.

Details here:

> <https://github.com/elastic/kibana/pull/79985>

---

<div class="post-metadata">

**Author:** ![Docrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/docrom/32/78004_2.png) [@Docrom](https://discuss.elastic.co/u/Docrom)\
**Post date:** [December 7, 2020, 4:59pm UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322/3 "2020-12-07T16:59:30Z")

</div>

Hi jsanz, it's good to know! Do we have a release date or something yet ?

Still, if someone can help me with my problem, you're more than welcome !

---

<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:** [December 7, 2020, 5:02pm UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322/4 "2020-12-07T17:02:49Z")

</div>

> [@Docrom](#):
>
> Hi jsanz, it's good to know! Do we have a release date or something yet ?

7.11 feature freeze should be soon, you can expect to be released in late January or so, but we can't commit to specific dates, sorry.

---

<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:** [January 4, 2021, 5:02pm UTC](https://discuss.elastic.co/t/auto-login-in-iframe-using-nginx-proxy/257322/5 "2021-01-04T17:02:53Z")

</div>

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