我在iOS和Android項目中使用Worklight。 我也使用適配器,進行安全測試,並使用基於適配器的認證。Worklight推送通知和SecurityTest
我想使用推送通知,用戶ID從基於適配器的認證功能接收。所以我使用相同的securityTest。
現在,當我嘗試使用我的安全測試與推送事件源,我有一個錯誤「無法從數據庫部署適配器」
WL.Server.createEventSource({
name : 'MyPushEventSource',
onDeviceSubscribe : 'deviceSubscribeFunc',
onDeviceUnsubscribe : 'deviceUnsubscribeFunc',
securityTest : 'MySecurityTest',
});
當我刪除的最後一行(securityTest) ,適配器被部署,當我添加它時,它失敗。
此securityTest已與多個其他適配器功能一起使用。
任何人都可以解釋我有什麼問題嗎? 在此先感謝。
編輯:這是我的安全測試的定義:
<securityTests>
<customSecurityTest name="MySecurityTest">
<test isInternalUserID="true" realm="MyAuthRealm"/>
</customSecurityTest>
</securityTests>
你可以在這裏添加安全測試(來自authenticationConfig.xml)嗎? – 2013-03-14 12:26:14
@ KerenBaron-Sela我剛剛編輯帖子以添加它 – WiPhone 2013-03-14 15:49:20