mardi 6 octobre 2015

Unit testing MobileFirst Platform Adapters

I am writing a node application to test the IBM MobileFirst Platform adapters that I have written. The approach I want to follow to do this, as follows:

  1. Get a test token from the http://localhost:10080/AppName/authorization/v1/testtoken
  2. Use this Bearer token to make authenticated requests to my protected adapters.

The problem with approach is that, when I try to make a request to the testtoken end point, I am getting a 405 status error. However, the same works with PostMan.

Is there a way to make this work in the node application? I am using the Request to send requests to the MobileFirst Server.

I am writing my nodejs application using SailsJs.

Aucun commentaire:

Enregistrer un commentaire