I am writing a NodeJS application to test the IBM MobileFirst Platform adapters that I have written. The approach I want to follow to do this, as follows:
- Get a test token from the http://localhost:10080/AppName/authorization/v1/testtoken
- 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 an HTTP 405 status error. However, the same works with PostMan.
Is there a way to make this work in the NodeJS application? I am using Request to send requests to the MobileFirst Server.
I am writing my NodeJS application using SailsJs.