Ibm mobilefirst IBM MobileFirst直接更新和安全测试

Ibm mobilefirst IBM MobileFirst直接更新和安全测试,ibm-mobilefirst,mobilefirst-server,Ibm Mobilefirst,Mobilefirst Server,我正在使用IBMMobileFirstStudio插件7.0,并遵循以下文档:关于如何配置直接更新。我试图理解这些片段是如何协同工作的,但我无法理解这个概念 使用随教程提供的代码示例,我看到“mobileSecurityTest”被注释掉,而“customSecurityTest”元素也被注释掉 我注意到的另一件事是,在application-descriptor.xml中,没有对添加的环境进行安全测试 应用程序如何知道在应用程序级别应用程序上使用哪个securityTest 是否需要将secu

我正在使用IBMMobileFirstStudio插件7.0,并遵循以下文档:关于如何配置直接更新。我试图理解这些片段是如何协同工作的,但我无法理解这个概念

使用随教程提供的代码示例,我看到“mobileSecurityTest”被注释掉,而“customSecurityTest”元素也被注释掉

我注意到的另一件事是,在application-descriptor.xml中,没有对添加的环境进行安全测试

  • 应用程序如何知道在应用程序级别应用程序上使用哪个securityTest
  • 是否需要将securityTest放在一般环境中,特别是直接更新环境中
  • 运行示例并遵循应用程序上的说明时,未触发直接更新
  • 任何建议都将不胜感激

  • 指定要在应用程序的应用程序描述符中使用的安全测试
  • 在我的应用程序描述符中,我有一个带有customSecurityTest的iPhone应用程序:

    <iphone bundleId="com.PhoneUp" version="1.0" securityTest="customSecurityTests">
        <worklightSettings include="false"/>
        <security>
            <encryptWebResources enabled="false"/>
            <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
        </security>
    </iphone>
    
    直接更新是一个领域,你可以阅读更多关于它

  • 中的示例项目没有注释安全测试,也没有保护应用程序的安全测试。您将不得不取消注释,并在应用程序描述符中添加一个安全测试,如第一个问题的答案中所述


  • 你能发布你的应用程序描述符和身份验证配置吗?谢谢,这帮了大忙。请注意,您提供的这些代码片段没有反映在示例中,可能会非常混乱
    <customSecurityTest name="customSecurityTests">
        <test realm="wl_antiXSRFRealm" step="1"/>
        <test realm="wl_authenticityRealm" step="1"/>
        <test realm="wl_remoteDisableRealm" step="1"/>
        <test realm="wl_directUpdateRealm" mode="perSession" step="1"/>
        <test realm="wl_anonymousUserRealm" isInternalUserID="true" step="1"/>
        <test realm="wl_deviceNoProvisioningRealm" isInternalDeviceID="true" step="2"/>
    </customSecurityTest>
    
    WL.Client.login("wl_directUpdateRealm", {onSuccess:..., onFailure:...});