# Authentication via token

**URL:** <https://discuss.elastic.co/t/authentication-via-token/185492>\
**Category:** Kibana\
**Created:** [June 12, 2019, 5:49pm UTC](https://discuss.elastic.co/t/authentication-via-token/185492 "2019-06-12T17:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkohler616](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bkohler616](https://discuss.elastic.co/u/bkohler616)\
**Post date:** [June 12, 2019, 5:49pm UTC](https://discuss.elastic.co/t/authentication-via-token/185492/1 "2019-06-12T17:49:03Z")

</div>

In this guide here...  
[https://www.elastic.co/guide/en/kibana/7.x/kibana-authentication.html#token-authentication](https://www.elastic.co/guide/en/kibana/7.x/kibana-authentication.html#token-authentication)

It says I can authenticate via a token.  
I now have said token and am ready to use it, but where can I?  
We previously used a guest user on the `/api/security/v1/login` endpoint.

The goal here is to simply iframe kibana dashboards in a UI, but we do not have the ability to use SAML at this time.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [June 12, 2019, 7:30pm UTC](https://discuss.elastic.co/t/authentication-via-token/185492/2 "2019-06-12T19:30:31Z")

</div>

You won't be able to supply the token directly in the URL of an iframe. However, you can use a reverse-proxy, which the iframe directs it's traffic through, to specify a request header which contains the token:

> The bearer tokens returned by Elasticsearch’s [get token API](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-get-token.html) can be used directly with Kibana using the `Authorization` request header with the `Bearer` scheme.

---

<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:** [July 10, 2019, 7:32pm UTC](https://discuss.elastic.co/t/authentication-via-token/185492/3 "2019-07-10T19:32:50Z")

</div>

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