1

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"}

Jaywant Khedkar
  • 5,941
  • 2
  • 44
  • 55
Ragu
  • 402
  • 1
  • 4
  • 18
  • This is new. Do you see it with all applications? What if you remove the scope and add it once more? – Vivin K Jun 08 '18 at 04:33
  • Are you possibly trying to login to "push.mobileclient" . I see the /preauthorize step failing and then it says "Invalid Security Check push.mobileclient" – Vivin K Jun 08 '18 at 04:34
  • Can you share your app code that results in this error ? push.mobileclient is a scope that can be mapped to a security check. In your case, the error says that the security check was not found - it should have been the scope instead. See this section for information on how to configure https://mobilefirstplatform.ibmcloud.com/tutorials/ru/foundation/8.0/notifications/sending-notifications/#scope-mapping – Srik Jun 10 '18 at 23:32

1 Answers1

1

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

Gaurab Kumar
  • 2,144
  • 2
  • 17
  • 29