AWS Cognito IntitiateAuth: Missing required parameter UserName

Question:

When initializing an authentication to AWS Cognito, the API is rejecting my request:

Here is the content of the request (yes, I tried putting it everywhere, no success).

Any idea about what would be the problem please?
Considering to the doc (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-dg-pdf.pdf), username should be in AuthParameters along with srpA. Would it be possible that the problem comes from srpA? If so, what is this? It looks like that it is the password.

Answer:

It should be in AuthParameters, not ClientMetadata.

I believe the expected values are USERNAME and SRP_A.

Leave a Reply