인증2 elastic search - failed to authenticate user [elastic] elastic search - failed to authenticate user [elastic] elasticsearch 7.6 버전을 잘 설치하고 기동했다. 특별히 문제가 없어보였는데, 호출시 인증 관련 에러가 발생했다. 1. 호출 curl -X GET --user elastic:tmvprxmfk1! "http://localhost:9200/_template/attic_template" Enter host password for user 'elastic': 2. 에러 발생 { "error": { "root_cause": [ { "type": "security_exception", "reason": "failed to authenticate user [elastic]", "header": { "WWW-.. 2022. 6. 15. JAVA REST API 호출, oauth2 연동, example code JAVA REST API 호출, oauth2 연동, example code 최근에 서버사이드 java코드에서 oauth2를 연동할일이 있었는데, java로 호출샘플 코드를 남겨 놓는다. sendPost를 함수 통해 RESTAPI를 호출 하거나, oauth2 연동 호출 하는데 사용하면 되겠다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchA.. 2022. 2. 18. 이전 1 다음