'Authenticate'에 해당되는 글 2건

  1. 2021.08.12 [Elasticsearch] RESTful API + ID:PASSWORD 요청.
  2. 2013.02.02 Elasticsearch jetty plugin + authenticate

[Elasticsearch] RESTful API + ID:PASSWORD 요청.

Elastic/Elasticsearch 2021. 8. 12. 13:18

분명 어딘가에 기록해 두었는데 이걸 왜 못찾고 있는 거지..ㅡ.ㅡ;

 

http://elastic:password@localhost:9200/test-index

 

elasticsearch 에서 기본 인증을 사용 할 경우 API token 사용 이런게 아니라면 단순하게는 저렇게 보낼 수 있습니다.

 

https://www.ietf.org/rfc/rfc2617.txt

공식 스펙은 위 문서 참고 하시면 됩니다. (Basic Authentication)

 

URL 로 보내기 싫으시면 header 로 보내시면 됩니다.

 

elastic:password 를 base64 인코딩 하시고 "Authorization" 헤더로 값을 보내시면 되겠습니다.

 

KEY : Authorization

VALUE : Basic ZWxhc3RpYzpwYXNzd29yZA==

 

:

Elasticsearch jetty plugin + authenticate

Elastic/Elasticsearch 2013. 2. 2. 22:38

I didn't install this plugin(elasticsearch-jetty) but it will apply on my ES soon.
More detail information read the below url.

[Reference]
https://github.com/sonian/elasticsearch-jetty

[Authenticate]
realm.properties

: