# Unable to authenticate custom user in chrome

**URL:** <https://discuss.elastic.co/t/unable-to-authenticate-custom-user-in-chrome/116415>\
**Category:** Kibana\
**Created:** [January 22, 2018, 12:23am UTC](https://discuss.elastic.co/t/unable-to-authenticate-custom-user-in-chrome/116415 "2018-01-22T00:23:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blnr102](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@blnr102](https://discuss.elastic.co/u/blnr102)\
**Post date:** [January 22, 2018, 12:23am UTC](https://discuss.elastic.co/t/unable-to-authenticate-custom-user-in-chrome/116415/1 "2018-01-22T00:23:02Z")

</div>

I just deployed a elastic stack in a kubernetes cluster with:  
FluentD + elasticsearch 6.1.2 + kibana 6.1.2

In the next step, I enabled the SSL encryption for the connection with my browser and created a custom user with the role kibana\_user. Kibana just uses the default cert and key, which are generated by itself.

Authentication work for the built-in users like elastic or kibana. But I cannot login with the new user. Kibana logs show:

> {"message":"[security\_exception] unable to authenticate user [user1] for REST request [/.kibana/doc/config%3A6.1.2], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }

Interestingly, when I clear the cache data in Chrome, I can log in.  
How can that happen?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 22, 2018, 7:47pm UTC](https://discuss.elastic.co/t/unable-to-authenticate-custom-user-in-chrome/116415/2 "2018-01-22T19:47:54Z")

</div>

You need to set xpack.security.encryptionKey in kibana.yml otherwise the cache will get invalidated when you open different windows of Kibana.

---

<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 19, 2018, 7:48pm UTC](https://discuss.elastic.co/t/unable-to-authenticate-custom-user-in-chrome/116415/3 "2018-02-19T19:48:22Z")

</div>

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