MobileFirst 8:保护静态资源

时间:2016-11-30 16:21:39

标签: ibm-mobilefirst mobilefirst-adapters mobilefirst-server

场景是:在MobileFirst混合应用程序中,我需要显示将驻留在服务器上的PDF。出于安全原因,我不想通过HTTP身份验证来保护它们(在Apache中我用作运行MobileFirst的TomCat的反向代理)。

通过MobileFirst 8身份验证保护静态资源的最简单方法是什么?我可以只配置TomCat来使用它,还是我必须用Java编写任何代码?通过适配器(包括base64编码)一直处理它们对我来说看起来不那么复杂。

1 个答案:

答案 0 :(得分:0)

You should save your files in a "resources server". You can protect this server with a confidential client in MobileFirst Foundation 8.0.

Read more about this, here: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/authentication-and-security/confidential-clients/

But yes, this will require you to implement some code.