2017-04-24 29 views
0

以前在IBM MobileFirst 7.1中,我们可以使用authenticationConfig.xml中的定制安全检查来更新或调整直接更新预定义身份验证领域和质询处理程序。对于mobileFirst 8.0应用程序,我们如何使用定制安全检查和直接更新预定义身份验证领域?如何在MobileFirst 8.0中更新直接更新预定义的身份验证领域和质询处理程序

目前,我们正在开发一个使用自定义质询处理程序和安全检查的应用程序。因此,当我们更新服务器上的Web资源时,它会触发客户端设备的直接更新并更新Web资源并重新加载应用程序。在这里,网络资源按预期更新。重新加载应用程序后,它试图获取访问令牌并无法从服务器获取令牌。

日志:

04-25 17:10:02.822 7414-8743/com.abc D/com.worklight.androidgap.directupdate.WLDirectUpdateDownloader: WLDirectUpdateDownloader.extractZipFile in WLDirectUpdateDownloader.java:320 :: File: views 
04-25 17:10:02.825 7414-8743/com.abc D/com.worklight.androidgap.directupdate.WLDirectUpdateDownloader: WLDirectUpdateDownloader.extractZipFile in WLDirectUpdateDownloader.java:353 :: Finish copy files to local storage from updated zip file... 
04-25 17:10:04.088 7414-8847/com.abc W/PluginManager: THREAD WARNING: exec() call to WLDirectUpdatePlugin.hideProgressDialog blocked the main thread for 1064ms. Plugin should use CordovaInterface.getThreadPool(). 
04-25 17:10:04.088 7414-8847/com.abc I/Choreographer: Skipped 63 frames! The application may be doing too much work on its main thread. 
04-25 17:10:04.095 7414-8743/com.abc D/com.worklight.androidgap.plugin.ChallengeHandlerPlugin: ChallengeHandlerPlugin.execute in ChallengeHandlerPlugin.java:42 :: inside ChallengeHandlerPlugin execute for action cancel 
04-25 17:10:04.096 7414-8743/com.abc D/com.worklight.androidgap.plugin.ChallengeHandlerPlugin: ChallengeHandlerPlugin.execute in ChallengeHandlerPlugin.java:64 :: inside ChallengeHandlerPlugin cancel 
04-25 17:10:04.096 7414-8743/com.abc D/wl.resource_request: WLResourceRequest$ObtainAccessTokenListener.onFailure in WLResourceRequest.java:759 :: Resource request failed with status:-1 and error: Challenge handler operation was cancelled. 
04-25 17:10:04.099 7414-8743/com.abc D/com.worklight.androidgap.plugin.WLResourceRequestPlugin: WLResourceRequestPlugin$1$1.onFailure in WLResourceRequestPlugin.java:92 :: inside WLResourceRequestPlugin failure 
04-25 17:10:04.102 7414-8743/com.abc D/WLAuthorizationManagerInternal: WLAuthorizationManagerInternal.onObtainAccessTokenFailure in WLAuthorizationManagerInternal.java:904 :: Obtain AccessToken failed with status code: -1 and error message: Challenge handler operation was cancelled. 
04-25 17:10:04.109 7414-8743/com.abc D/com.worklight.androidgap.plugin.WLActionSenderPlugin: WLActionSenderPlugin.onDestroy in WLActionSenderPlugin.java:114 :: onDestroy 
04-25 17:10:04.112 7414-8743/com.abc D/com.worklight.androidgap.plugin.WLActionSenderPlugin: WLActionSenderPlugin.removeActionReceiverIfExists in WLActionSenderPlugin.java:96 :: Receiver :: MIActionReceiverId found. Removing. 
04-25 17:10:04.113 7414-8743/com.abc D/com.worklight.androidgap.plugin.WLActionReceiverWithCallbackcontext: WLActionReceiverWithCallbackcontext.releaseCallbackContext in WLActionReceiverWithCallbackcontext.java:50 :: releaseCallbackContext 
04-25 17:10:04.206 7414-7414/com.abc I/chromium: [INFO:CONSOLE(142)] "onFailure for fetch tasks adapter call. error:{"status":-1,"responseText":"","responseHeaders":{},"errorMsg":"Challenge handler operation was cancelled.","errorCode":"CHALLENGE_HANDLING_CANCELED"}", source: file:///android_asset/www/js/controllers/myTasks.js (142) 

回答

0
+0

感谢Srinivas,我们遵循了您提到的相同文档。但我们的问题不是定制直接更新UI。我已经详细更新了我的问题。让我知道你是否需要更多信息。 –