# Kibana iframe with Token (Authentication purpose)

**URL:** <https://discuss.elastic.co/t/kibana-iframe-with-token-authentication-purpose/207744>\
**Category:** Elasticsearch\
**Created:** [November 13, 2019, 4:24pm UTC](https://discuss.elastic.co/t/kibana-iframe-with-token-authentication-purpose/207744 "2019-11-13T16:24:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [November 15, 2019, 9:53am UTC](https://discuss.elastic.co/t/kibana-iframe-with-token-authentication-purpose/207744/2 "2019-11-15T09:53:21Z")

</div>

Elasticsearch Token Service tokens have specific properties that make them difficult to use for your use case, specifically that they have very short life ( by default 20 mins and up to 1hr ) after which you either need to use the refresh token to refresh it or get another access token. You can use bearer tokens in your requests to Kibana but you need to enable the `Token` authentication provider in kibana , see [Authentication in Kibana | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#token-authentication), but whether this is suitable for your scenario, I doubt it.

> [@vishal\_M](#):
>
> - Used Nginx proxy to bypass the authentication. However, this is a 50% result. Because the Dashboard URL will be accessible even without logging in to my application.
> - Tried to pass userName and password as a part of the Kibana iframe URL. But, it didn't work.

I can't really unwrap how you tried it and what _Exactly_ failed ? This is the most obvious way forward for you, so I'd suggest we focus on making this work. There are numerous examples in previous posts in this forum to help you, start with [Nginx reverse proxy for kibana](https://discuss.elastic.co/t/nginx-reverse-proxy-for-kibana/179024) that contains further links to other relevant posts

---

_[View the full topic](https://discuss.elastic.co/t/kibana-iframe-with-token-authentication-purpose/207744)._
