jmeterjmeter-pluginsjmeter-5.0jmeter-4.0

Not able to get authentication token in JMeter


My current application login flow is as mentioned below:

  1. Access application URL
  2. Application redirects to Microsoftonline
  3. Insert username >> click Next
  4. Insert password >> click SignIn
  5. Click on Yes on Stay signed in? dialog box.
  6. Browser shows token as part of response header with status code 302. Status code 302 in browser dev tool

However in JMeter I am getting 200 OK response and unable to see access token in header response. Note that I have done correlation for input parameters. Moreover I am able to get access token using postman. [Jmeter sampler result] (https://i.sstatic.net/2fJ2eY7M.png)

Jmeter response header

Followed below mentioned approaches but those didn't worked.

  1. Check/uncheck of "Follow Redirects" option.
  2. Check/uncheck of "Redirect Automatically" option.
  3. Used other approach as suggested in article here: https://www.vanderveer.io/jmeter-azure-ad-no-plugins/. I am able to get the token but it failed to perform user access level functionality.

Solution

  • I am able to resolve the access token issue by following below article. https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth-ropc