I am using jmeter for load testing and website for login is using Authorisation Code Flow with PKCE. I am getting 500 response in my signin-oidc sampler result of Jmeter Script. All other endpoints are getting 200 response.
In my Jmeter Script, I am generating code verifier and code challenge when the user clicks on login "/login" and passing on the code challenge in the request parameters of "/connect/authorize". I get the code in the response of "Account/Login?ReturnUrl.................." where I have passed username and password in request parameter. Then in "/connect/authorize/callback" as well I am passing the same codeChallenge and extracting the value of code and then passing this code value to the "/signin-oidc" alongwith the code verifier generated in "/login". All the endpoint passes except "/signin-oidc". What mistake am I making?
Maybe there a problem with your logic which is "generating code verifier and code challenge"
Make sure that it matches i.e. the one listed under Call Your API Using the Authorization Code Flow with PKCE page
The equivalent JMeter code you can use in JSR223 PreProcessor would be something like:
For
code verifierFor
code challengeMore information: