- 指定要在應用程序的應用程序描述符中使用的安全測試。
在我的應用程序描述我有一個iPhone應用程序與customSecurityTest:
<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>
現在是保護我的應用程序的安全測試有一個映射到我的authentication-config中的安全測試(服務器上的安全文件)
沒有安全測試不需要放在應用程序上觸發直接更新。
只有當用戶試圖「登錄」到該領域時,纔可以觸發直接更新。
WL.Client.login("wl_directUpdateRealm", {onSuccess:..., onFailure:...});
直接更新是一個領域,你可以閱讀更多關於該here。
來自here的示例項目沒有註釋的安全測試或保護應用程序的安全測試。您將不得不取消註釋並在您的應用描述符中添加安全測試,如第一個答案中所述。
你可以發佈你的應用程序描述符和你的驗證配置嗎? –