# Rest API (Authenticate, Change Password)

**URL:** <https://discuss.elastic.co/t/rest-api-authenticate-change-password/105424>\
**Category:** Elasticsearch\
**Created:** [October 26, 2017, 12:31pm UTC](https://discuss.elastic.co/t/rest-api-authenticate-change-password/105424 "2017-10-26T12:31:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thecitizen](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@thecitizen](https://discuss.elastic.co/u/thecitizen)\
**Post date:** [October 26, 2017, 12:31pm UTC](https://discuss.elastic.co/t/rest-api-authenticate-change-password/105424/1 "2017-10-26T12:31:14Z")

</div>

Hi,

I have created new user in Kibana (superuser) and I would like to test from remote machine authentication and change password using Rest API client (Postman , Rest API via Chrome).

I am trying to understand:

1. If there is any special setup needed on the server (e.g. elasticseacrh.yml or any other file).

2. which authenticate do i need to use (Basic Auth or Oauth/2).

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [October 26, 2017, 4:14pm UTC](https://discuss.elastic.co/t/rest-api-authenticate-change-password/105424/2 "2017-10-26T16:14:26Z")

</div>

Yes, you need to tell elasticsearch to listen on a public IP for http using the `http.host` setting. [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)

You should use basic auth.

---

<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:** [November 23, 2017, 4:14pm UTC](https://discuss.elastic.co/t/rest-api-authenticate-change-password/105424/3 "2017-11-23T16:14:42Z")

</div>

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