After logging into my React app, my alert says Logged In
however I see that I am getting a 400 Bad Request error from Cognito Identity
. I have pasted my request as a curl command.
I am having a difficult time trying to find out how to resolve it.
curl 'https://cognito-identity.us-west-2.amazonaws.com/' -H 'authority: cognito-identity.us-west-2.amazonaws.com' -H 'x-amz-content-sha256: c7786c3a445c86b2554a110091048a5797fc01ac133022a439c16067a7472ef6' -H 'sec-fetch-dest: empty' -H 'x-amz-target: AWSCognitoIdentityService.GetId' -H 'x-amz-user-agent: aws-amplify/2.3.0 js aws-amplify/2.3.0 js callback' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' -H 'content-type: application/x-amz-json-1.1' -H 'accept: */*' -H 'origin: http://localhost:8080' -H 'sec-fetch-site: cross-site' -H 'sec-fetch-mode: cors' -H 'referer: http://localhost:8080/login' -H 'accept-language: en-US,en;q=0.9' --data-binary '{"IdentityPoolId":"us-west-2:<id>","Logins":{"cognito-idp.us-west-2.amazonaws.com/us-east-2_QQn3eyWad":"<is this the signature?>"}}' --compressed
when I take the cURL command and paste it into Postman I receive this error:
{
"Output": {
"__type": "com.amazon.coral.service#UnknownOperationException",
"message": null
},
"Version": "1.0"
}
But this is rather vague