# How to perform user authentication, before going to kibana dashboad?

**URL:** <https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991>\
**Category:** Kibana\
**Created:** [December 22, 2017, 11:37am UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991 "2017-12-22T11:37:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreenu](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@sreenu](https://discuss.elastic.co/u/sreenu)\
**Post date:** [December 22, 2017, 11:37am UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/1 "2017-12-22T11:37:50Z")

</div>

Hi,

I want to add user authentication using custom html page when someone hits the server on which kibana is running.

So when a person hits the server the first page should be the login page, then it will authenticate the user and then only the kibana home page should be displayed

---

<div class="post-metadata">

**Author:** ![Mojster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojster/32/21209_2.png) [@Mojster](https://discuss.elastic.co/u/Mojster)\
**Post date:** [December 22, 2017, 12:46pm UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/2 "2017-12-22T12:46:58Z")

</div>

[X-pack =\> Security](https://www.elastic.co/subscriptions)

---

<div class="post-metadata">

**Author:** ![jali](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jali](https://discuss.elastic.co/u/jali)\
**Post date:** [December 22, 2017, 12:56pm UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/3 "2017-12-22T12:56:23Z")

</div>

Use Nginx in front to auth first. E.g.:  
e.g. [https://gist.github.com/Dev-Dipesh/2ac30a8a01afb7f65b2192928a875aa1](https://gist.github.com/Dev-Dipesh/2ac30a8a01afb7f65b2192928a875aa1)

---

<div class="post-metadata">

**Author:** ![sreenu](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@sreenu](https://discuss.elastic.co/u/sreenu)\
**Post date:** [December 27, 2017, 5:46am UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/4 "2017-12-27T05:46:09Z")

</div>

Can you please tell me what exactly I have to do because I am very new to this tech.

---

<div class="post-metadata">

**Author:** ![Mojster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojster/32/21209_2.png) [@Mojster](https://discuss.elastic.co/u/Mojster)\
**Post date:** [December 27, 2017, 11:54am UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/5 "2017-12-27T11:54:10Z")

</div>

I have had the same demand. After doing my research I found out, that there is no free solution. Just a paid one, that is a part of X-Pack.

So we solved this using firewall. That's why I cannot help you further with X-pack.

---

<div class="post-metadata">

**Author:** ![jali](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jali](https://discuss.elastic.co/u/jali)\
**Post date:** [December 28, 2017, 5:02pm UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/6 "2017-12-28T17:02:27Z")

</div>

There are step by step guides, Googling ELK+nginx will provide good pointers.

For CentOs there’s nice guide at [https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7)  
Towards the end of this doc, they provide instructions for setting up Nginx.  
They also have guides for Ubuntu.

Nginx can act as reverse proxy and prompts you to authenticate before passing the user to 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:** [January 25, 2018, 5:02pm UTC](https://discuss.elastic.co/t/how-to-perform-user-authentication-before-going-to-kibana-dashboad/112991/7 "2018-01-25T17:02:32Z")

</div>

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