# Cookie based auth x-pack

**URL:** https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620
**Category:** Kibana
**Created:** [January 23, 2018, 9:03am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620 "2018-01-23T09:03:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anton-putau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anton-putau/32/26827_2.png) [@anton-putau](https://discuss.elastic.co/u/anton-putau)
#### Post date: [January 23, 2018, 9:03am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/1 "2018-01-23T09:03:31Z")

</div>

I would like to allow site visitors to view kibana charts. I need something like custom realm to read site cookies and determine which permissions user have. Is it possible to achieve? Are there any existing solutions ? Thanks.

---

<div class="post-metadata">

### Author: ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)
#### Post date: [January 23, 2018, 9:25am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/2 "2018-01-23T09:25:29Z")

</div>

> [@anton-putau](#):
>
> read site cookies and determine which permissions user have

i am not aware of any such solution, but i might be wrong.

could you try to further explain your use case and what would be your expectations?

thanks.

---

<div class="post-metadata">

### Author: ![anton-putau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anton-putau/32/26827_2.png) [@anton-putau](https://discuss.elastic.co/u/anton-putau)
#### Post date: [January 23, 2018, 10:10am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/3 "2018-01-23T10:10:36Z")

</div>

I need to provide users some statistics. For now I can't guess how exactly user will access it. Most likely I will place a link on a web page which will point user to a dashboard (or embed somehow dashboard or specific chart on a web page). In this case user should be restricted to perform only read only actions. Also charts should be hidden from anonymous access. Some charts can be user specific, so I need to know which user is trying to access resource and to adjust charts on the fly (if it is possible). To perform security integration of kibana (kibana charts) to website I am planning to use site cookies, allowing kibana to read them.

---

<div class="post-metadata">

### Author: ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)
#### Post date: [January 23, 2018, 10:18am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/4 "2018-01-23T10:18:01Z")

</div>

are you using xpack to secure your kibana instance ?

---

<div class="post-metadata">

### Author: ![anton-putau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anton-putau/32/26827_2.png) [@anton-putau](https://discuss.elastic.co/u/anton-putau)
#### Post date: [January 23, 2018, 10:27am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/5 "2018-01-23T10:27:01Z")

</div>

both elastic and kibana are secured with x-pack

---

<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: [February 20, 2018, 10:27am UTC](https://discuss.elastic.co/t/cookie-based-auth-x-pack/116620/6 "2018-02-20T10:27:02Z")

</div>

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