1

So I have implemented ElasticSearch API using Amazon Web Services. Now as the Android Application is currently in testing mode

I am building an Android Application where there is one Search feature for user where I have used ElasticSearch API from Amazon Web Services. Now the question is how to secure that API Request. I have so far seen the policy based authentication, Shield. I want something of a token based authentication like restful api's. Is there something out there for this or a different approach in android application for searching.

1 Answer 1

1

You could use AWS Lambda that will act as an auth layer.

If you are using a server already then you can do something like the image below. If you are hitting ElasticSearch from your Android App then maybe something like this custom plugin, but I don't know if your provider (AWS) permits the installation of custom plugins.

You can find an interesting conversation on this thread. Maybe something that fits your use case will come up.

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

If I find something else I will update my answer. In the meantime if this answers your question don't forget to accept the answer. More importantly, this is a very interesting use case, so please update your question when you've decided, describing your solution. Have fun

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.