We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.
I've downloaded the sgccognito_idp_demo and I'm trying the Initiate Auth method.
I have a working example in Postman, so I copied the relevant values into the demo fields (URL, Access Key, Client Secret) but when I paste the body data into the "Body" memo field I'm getting a 400 Bad Request error: 'HTTP/1.1 400 Bad Request. {"code":"BadRequest","message":"The server did not understand the operation that was requested.","type":"client"}'.
I'm wondering if the text in the Body memo needs some kind of special formatting.
First sorry because my previous response was wrong, after reviewing the documentation, the cognito api doesn't make use of the form url encoded, so you are right, it's a json string the text that must be sent in the body of the post request.
I've compiled the demo sample for cognito, with a fix for this error and you can download from: