isCustomResponse()API - 可用或不是MFPF8 [英] isCustomResponse() API - Available or not MFPF8

查看:157
本文介绍了isCustomResponse()API - 可用或不是MFPF8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用isCustomResponse()API从网络中获取响应。我需要测试答复,然后才能决定我下一步在Cordova应用程序中需要做什么。

I have been trying to use isCustomResponse() API to grab the responses back from the network. I need to test the responses before I can make decision on what I need to do next in my Cordova app.

我之前曾经问过一个类似的问题@ submitLoginForm()不会将数据发送到身份验证服务器 - MobileFirst Cordova客户端

I had earlier asked a similar question before @ submitLoginForm() does not send the data to the authentication server - MobileFirst Cordova client

,并且获悉isCustomResponse()API在MFPF8中不再可用。当我查看MFPF8在线帮助的API列表: https://www.ibm.com/support/knowledgecenter/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjavascript- client / html / WL.Client.AbstractChallengeHandler.html

and it was informed that isCustomResponse() API is no longer available in MFPF8. When I look at the API list on MFPF8 online help here: https://www.ibm.com/support/knowledgecenter/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Client.AbstractChallengeHandler.html

API是可用的API之一。有人可以确认此API是否可用。如果它不可用,那么我想在线文档需要更新。

the API is one of the available APIs. Can someone please confirm whether this API is available or not. If it is not available, then I guess the online documentation requires an update.

此外,如果此API不可用,您可以让我们知道为什么这是从MFPF8删除?

Further, if this API is not available, can you please let us know as to why is this being removed from MFPF8?

感谢。

推荐答案

在Foundation 8.0中,安全性作为安全检查实施。当使用安全检查时,API isCustomResponse 不再相关:框架将检查安全检查的名称以确定是否激活质询处理程序。这些类型的挑战处理程序称为 SecurityCheckChallengeHandler

In Foundation 8.0, in most cases your security is implemented as a Security Check. When using a security check, the API isCustomResponse is no longer relevant: the framework will check the name of the security check to determine whether to activate the challenge handler. These types of challenge handlers are called SecurityCheckChallengeHandler.

有一个特殊的情况, code> isCustomResponse :如果您的安全是由第三方网关(例如DataPower)实施的。

There is one special scenario where you may still be interested in isCustomResponse: if your security is implemented by a third party gateway, such as DataPower.

在这种情况下,需要使用不同类型的质询处理程序,称为 GatewayChallengeHandler 。在JavaScript中,它们是使用API​​ WL.Client.createGatewayChallengeHandler 创建的(请参阅文档: http://www.ibm.com/support/knowledgecenter/SSHS8R_8 .0.0 / com.ibm.worklight.apiref.doc / html / refjavascript-client / html / WL.Client.html#createGatewayChallengeHandler )。

In such a case, you need to use a different type of challenge handler, called GatewayChallengeHandler. In JavaScript they are created using the API WL.Client.createGatewayChallengeHandler (see documentation: http://www.ibm.com/support/knowledgecenter/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Client.html#createGatewayChallengeHandler).

您可以使用旧的API,例如 isCustomResponse submitLoginForm

There you can use the old APIs such as isCustomResponse and submitLoginForm.


编辑:使用8.0 GA, isCustomResponse 已重命名为 canHandleResponse p>

With 8.0 GA, isCustomResponse has been renamed canHandleResponse.

重要注意事项:

  • There is a known issue in 8.0 beta that may prevent "gateway" challenge handlers to be triggered in some cases. This should be fixed when the release of the 8.0 GA version. Fixed.
  • The names of these challenge handlers and APIs are scheduled to change upon GA, so keep an eye out for this. Done, see this blog post: https://mobilefirstplatform.ibmcloud.com/blog/2016/06/22/challenge-handlers/
  • The API documentation will be updated with the release of GA as well. Done.

这篇关于isCustomResponse()API - 可用或不是MFPF8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆