# \[Elasticsearch exception \[type=security\_exception, reason=missing authentication token for REST request \[/\*\*\*/\*\*/\*\*\]\]\]

**URL:** <https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509>\
**Category:** Elasticsearch\
**Created:** [October 1, 2018, 5:09am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509 "2018-10-01T05:09:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunnytimes](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sunnytimes](https://discuss.elastic.co/u/sunnytimes)\
**Post date:** [October 1, 2018, 5:09am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509/1 "2018-10-01T05:09:58Z")

</div>

1.server ===\> es 6.2.2(x-pack enabled)  
2.app ===\> springboot 2.0.5.RELEASE  
3.app ===\> elasticsearch-rest-high-level-client 6.2.2(work in springboot)

after app start over without any error.try to test interface i got this:

2018-09-30 17:16:05.307 WARN 11124 --- [nio-8080-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by handler execution: ElasticsearchStatusException[Elasticsearch exception [type=security\_exception, reason=missing authentication token for REST request [/ **/** /\*\*]]]

is anyone kown how to set the authentication ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 1, 2018, 5:26am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509/2 "2018-10-01T05:26:59Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<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:** [October 29, 2018, 5:27am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509/3 "2018-10-29T05:27:06Z")

</div>

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