# Authentication to Kibana

**URL:** <https://discuss.elastic.co/t/authentication-to-kibana/217617>\
**Category:** Kibana\
**Created:** [February 3, 2020, 11:32am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617 "2020-02-03T11:32:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)\
**Post date:** [February 3, 2020, 11:32am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/1 "2020-02-03T11:32:26Z")

</div>

Hello All ,

We wanted to setup a basic authentication for Kibana which is installed on Windows, where by supplying User id and password , it should match with the user id and password provided in the configuration file and if it matches then it should authenticate , open the dashboard page of Kibana . In Otherwords need to know whats the best way to go for authentication something which is open source.Any idea how can we achieve this please ?

Thanks and Regards  
Saravana S

---

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [February 3, 2020, 11:40am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/2 "2020-02-03T11:40:23Z")

</div>

Try ReadOnlyRest [https://readonlyrest.com/](https://readonlyrest.com/)

---

<div class="post-metadata">

**Author:** ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)\
**Post date:** [February 4, 2020, 4:38am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/3 "2020-02-04T04:38:52Z")

</div>

Hello @inhinyera16 ,

Thanks for your reply but i am looking for open source one . Can you please help me with that ?

---

<div class="post-metadata">

**Author:** ![elemus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elemus/32/61976_2.png) [@elemus](https://discuss.elastic.co/u/elemus)\
**Post date:** [February 6, 2020, 11:35pm UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/4 "2020-02-06T23:35:53Z")

</div>

what about nginx in front of kibana endpoint? Setup users or match with ldap.  
Is a good way.

---

<div class="post-metadata">

**Author:** ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)\
**Post date:** [February 7, 2020, 6:58am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/5 "2020-02-07T06:58:53Z")

</div>

Hello @elemus ,

I tried this method too . But It is not working. Can you please help us on this.

> ```
> server {
> listen 80;
> server_name <Hostname I specified>;
> 
> #root E:/ELK/nginx-1.16.1;
> 
> #charset koi8-r;
> 
> #access_log logs/host.access.log main;
> 
>         
> 
> location / {
>   
> auth_basic "Restricted";
> auth_basic_user_file E:/ELK/nginx-1.16.1/conf/password.txt;
> proxy_pass http://127.0.0.1:5601;
> proxy_http_version 1.1;
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection 'upgrade';
> proxy_set_header Host $host;
> proxy_cache_bypass $http_upgrade; 
> }
> }
> 
> ```

---

<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:** [March 6, 2020, 6:59am UTC](https://discuss.elastic.co/t/authentication-to-kibana/217617/6 "2020-03-06T06:59:01Z")

</div>

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