I'm trying to implement basic authentication on elasticsearch using RestFilter as given in below post's:
Looks like from version greater than 5.1.2, RestFilter can not be registered to RestHandler, as the RestFilter class itself removed from org.elasticsearch.rest package.
Can somebody please let me know how to achieve basic authentication using RestFilter or RestHandler to add it as plugin to elastic search?
According to @chanchal in post - Using RestHandlers for custom Authentication Plugin, he is able to create his custom AuthenticationFilter by extending RestFilter in ES version 5.4.2 - not sure how he is able to do that when RestFilter is removed from org.elasticsearch.rest package.
Any help on his would greatly appreciated, please.