Get current username within a REST plugin


I am trying to create a custom search API that filters the records based on users. I am extending the BaseRestHandler and I need to get the current user name within the prepareRequest method. I appreciate help in this matter.

public class CustomSearchAction extends BaseRestHandler {

public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {


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