I am developing a Kibana plugin which is an "app". The application allows users to create notes to be stored on Elasticsearch, which has X-Pack installed.
The whole flow is like this:
- User logins to Kibana.
- User creates a note in the app.
- The app sends the note to the API
/api/notes
defined on Kibana server. - Kibana server saves the note to Elasticsearch on behalf on the user.
The problem happens in Step 3 that the user credentials are NOT sent to the Kibana server. Without the credentials, I cannot store the note on behalf of the user.
How could I configure to send the credentials in the Kibana plugin?
Supplementary Information
Kibana: v5.2.2
ElasticSearch: v5.2.2
Any hints are very appreciated. Thank you!