# Add basic authentication without xpack and reverse proxies

**URL:** https://discuss.elastic.co/t/add-basic-authentication-without-xpack-and-reverse-proxies/173911
**Category:** Elasticsearch
**Created:** [March 26, 2019, 11:21am UTC](https://discuss.elastic.co/t/add-basic-authentication-without-xpack-and-reverse-proxies/173911 "2019-03-26T11:21:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)
#### Post date: [March 26, 2019, 11:21am UTC](https://discuss.elastic.co/t/add-basic-authentication-without-xpack-and-reverse-proxies/173911/1 "2019-03-26T11:21:53Z")

</div>

Is there any way to add basic authentication without using any plugins or reverse proxies,by modifying some code (for example restcontroller.java).

---

<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: [April 23, 2019, 11:21am UTC](https://discuss.elastic.co/t/add-basic-authentication-without-xpack-and-reverse-proxies/173911/2 "2019-04-23T11:21:53Z")

</div>

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