所以我已经使用ElasticSearch API实现了Amazon Web Services。现在,因为Android Application目前处于测试模式

我正在构建一个Android Application,其中Search具有一个user功能,其中我使用了ElasticSearch API中的Amazon Web Services。现在的问题是如何保护API Request
到目前为止,我已经看到了policy based authentication, Shield。我想要一些基于 token 的身份验证,例如restful api。
有没有为此或Android应用程序中搜索的其他方法。

最佳答案

您可以使用AWS Lambda充当auth layer

如果您已经在使用服务器,则可以执行下图所示的操作。如果您从Android应用程序中访问ElasticSearch,则可能类似于custom plugin,但我不知道您的提供商(AWS)是否允许安装自定义插件。

您可以在thread上找到有趣的对话。也许会出现适合您的用例的东西。

android - 如何在Android应用程序中保护ElasticSearch API?-LMLPHP

10-01 17:16
查看更多