AWS cognito service user login performance test with Jmeter
Im about to do a performance test to a user login using Jmeter. I was able to record the initial reguests using Jmeter and at the 2nd request its genarating the Authorization key.
Inital request it, send data as on the below screen shot and Im getting some valid responses.
At the 2nd request I have to pass few parameters like
PASSWORD_CLAIM_SECRET_BLOCK , PASSWORD_CLAIM_SIGNATURE.
PASSWORD_CLAIM_SECRET_BLOCK is directly comming as a responce from 1st request, But the issue is to find PASSWORD_CLAIM_SIGNATURE. becouse its not available at the 1st responce.
So my quesction is where am i going to get this PASSWORD_CLAIM_SIGNATURE in order to complete the 2nd request whcih will give me the authantication key.
All AWS API requests has to be signed, the signature needs to be calculated on your side, you cannot extract it from the previous response, you need to generate it.
Check out Signing AWS API Requests for more details.
In JMeter you can use JSR223 PreProcessor to create the request signature according to the above algorithm and use the value as the
Pankaj Sharma last edited by
Hi @Nykeriab , were you able to log in successfully? I am having the same situation and struggling to login into the application through JMeter. If you can share the solution it will be great.
@Pankaj-Sharma Have able to login? I am also facing same issue.. Please provide any leads