MobileFirst - 无效的安全检查 push.mobileclient

MobileFirst - Invalid Security Check push.mobileclient

我在尝试订阅 推送通知 时遇到以下错误。

在 ios 版本中,已为 push.mobileclient 添加了安全范围。

/api/preauth/v1/preauthorize] failure. state: 400, response: Invalid Security Check push.mobileclient 2018-06-08 00:02:21.162970-0400 MetLifeContigo[71791:617087] {"responseHeaders":{"Date":"Fri, 08 Jun 2018 04:02:58 GMT","Transfer-Encoding":"Identity","Content-Language":"en-US","Content-Type":"application/json","X-Powered-By":"Servlet/3.0","Connection":"close"},"status":400,"responseText":"{\"errorCode\":\"SECURITY_CHECK_NOT_FOUND\",\"errorMsg\":\"Invalid Security Check push.mobileclient\"}","responseJSON":{"errorCode":"SECURITY_CHECK_NOT_FOUND","errorMsg":"Invalid Security Check push.mobileclient"},"errorCode":"SECURITY_CHECK_NOT_FOUND","errorMsg":"Invalid Security Check push.mobileclient"}

我将 Srik 的评论作为答案,以便接受并关闭此问题。

push.mobileclient 范围元素映射到应用程序。

  1. 加载 MobileFirst Operations Console 并导航到 [您的应用程序] → 安全 → 范围元素映射,单击新建。
  2. 在范围元素字段中写入“push.mobileclient”。然后,单击“添加”。

有关更多详细信息,请查看此处:https://mobilefirstplatform.ibmcloud.com/tutorials/ru/foundation/8.0/notifications/sending-notifications/#scope-mapping