I am building a search application. I would like our end users to be able to query our Elastic index which is on Elastic Cloud. I would like to allow users to access certain indexes and not others. I see that X-Pack is included in our paid Elastic Cloud account. Where is there a good example or tutorial illustrating how to authenticate end users?
We would like to do this in the simplest way. For example, if it is possible to create and use JSON Web Tokens (JWTs), we will prefer that approach.