# Auto authenticating to an embedded Kibana dashboard (on Elastic.co CLOUD)

**URL:** <https://discuss.elastic.co/t/auto-authenticating-to-an-embedded-kibana-dashboard-on-elastic-co-cloud/71248>\
**Category:** Kibana\
**Created:** [January 11, 2017, 3:52pm UTC](https://discuss.elastic.co/t/auto-authenticating-to-an-embedded-kibana-dashboard-on-elastic-co-cloud/71248 "2017-01-11T15:52:51Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![michele.pagnin](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@michele.pagnin](https://discuss.elastic.co/u/michele.pagnin)\
**Post date:** [January 18, 2017, 9:52am UTC](https://discuss.elastic.co/t/auto-authenticating-to-an-embedded-kibana-dashboard-on-elastic-co-cloud/71248/13 "2017-01-18T09:52:53Z")

</div>

@thomasneirynck

We have resolved the issue in the following way:

```
server {
	listen 443;
	server_name localhost;
	ssl on;
	ssl_certificate /etc/nginx/ssl/nginx.crt;
    ssl_certificate_key /etc/nginx/ssl/nginx.key;
	ssl_session_cache shared:SSL:1m;
	ssl_session_timeout 5m;
	ssl_ciphers HIGH:!aNULL:!MD5;
	ssl_prefer_server_ciphers on;

	location / {
	     proxy_set_header X-Found-Cluster XXXXXX;
         proxy_set_header Host $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 YYYYYY";
         proxy_pass https://XXXXXX.eu-west-1.aws.found.io;
     }
}

```

Where XXXXXX is the cluster ID and YYYYYY is the string "username:password" encoded in base64.  
Thank to everyone for the support  
Bye

---

_[View the full topic](https://discuss.elastic.co/t/auto-authenticating-to-an-embedded-kibana-dashboard-on-elastic-co-cloud/71248)._
