Search code examples
apple-push-notificationsibm-mobilefirstmobilefirst-server

MobileFirst - Invalid Security Check push.mobileclient


I am getting the below error while trying to subscribe to push notification.

In ios version security scope has been added for 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"}


Solution

  • I’m mirroring Srik's comment as an answer so this question can be accepted and closed.

    Map the push.mobileclient scope element to the application.

    1. Load the MobileFirst Operations Console and navigate to [your application] → Security → Scope-Elements Mapping, click on New.
    2. Write “push.mobileclient” in the Scope element field. Then, click Add.

    For more details check here: https://mobilefirstplatform.ibmcloud.com/tutorials/ru/foundation/8.0/notifications/sending-notifications/#scope-mapping