Kibana version 6.1
we have default core plugin 'elasticsearch'
I wrote my own plugin 'project-auth' here I have a userId which I encrypted it and set to cookie
In every request of my elasticsearch I want this userId to be passed, I have "callwithInternalUser" method I can add a parameter there
clientParams = { ...clientParams, 'userId': '1234567890' };
return callAPI(this._client, endpoint, clientParams, options);
}```
Now my problem is, I have userId inside the 'project-auth' plugin, I want it inside elasticsearch plugin
what to do ??
or tell me how to pass the data from there to here.