AWS Cognito IntitiateAuth: Missing required parameter UserName


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 (, 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.


It should be in AuthParameters, not ClientMetadata.

I believe the expected values are USERNAME and SRP_A.

Leave a Reply