I have coded a REST api which basically inserts, gets and updates the data from Elasticsearch. After implementing the basic security when I pass a curl command to the api providing credentials along with it (using -u), I get the following error:
[type=security_exception, reason=unable to authenticate user [a] for REST request]
Any idea how to pass the credentials to the REST api so that the same can pass it to Elasticsearch?
I am using version 6.8.16.