# Can't login with Postman/JMeter since /login form is javascript. Are there workarounds to get code and state response?

**URL:** <https://community.auth0.com/t/cant-login-with-postman-jmeter-since-login-form-is-javascript-are-there-workarounds-to-get-code-and-state-response/57304>\
**Category:** Get Help\
**Tags:** jmeter, code, testing, postman, login\
**Created:** [February 3, 2021, 6:57pm UTC](https://community.auth0.com/t/cant-login-with-postman-jmeter-since-login-form-is-javascript-are-there-workarounds-to-get-code-and-state-response/57304 "2021-02-03T18:57:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![briantully](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/briantully/32/27379_2.png) [@briantully](https://community.auth0.com/u/briantully)\
**Post date:** [February 3, 2021, 6:57pm UTC](https://community.auth0.com/t/cant-login-with-postman-jmeter-since-login-form-is-javascript-are-there-workarounds-to-get-code-and-state-response/57304/1 "2021-02-03T18:57:59Z")

</div>

A customer has asked me to load test their Drupal application, which is using Auth0 as their single sign-on solution and connected to a Drupal callback that’s using OpenID Connect. I’ve worked with other OpenID/OAuth2 setups, and typically the login forms are static forms that contain the necessary credentials, nonces, etc that allow a tool like JMeter to extract those bits and pass it onto the next request. However, Auth0’s hosted login form is all Javascript, so it does not render in a tool like JMeter or Postman. The problem I am having is that there doesn’t appear to be a way for me to automate a user logging in at Auth0 and redirecting back to the site with the correct “code” and “state” parameters, since those parameters appear to be dynamic.

Is there a POSTMAN request I can make to Auth0’s API where I can send in the client\_id, client\_secret, username, password, id\_token, etc, and get back the “code” and “state” values needed for the Drupal callback?

Example:

Drupal Callback URL: [https://example.com/openid-connect/generic?code=mDzaUSfwY-tRc1n5&state=oBZCH1GGOWcZqVS0f5je\_fZtZjxvbrLNvozhLh9CdOc](https://example.com/openid-connect/generic?code=mDzaUSfwY-tRc1n5&state=oBZCH1GGOWcZqVS0f5je_fZtZjxvbrLNvozhLh9CdOc)

Where “code” and “state” appear to be dynamic and required/validated values.

Any ideas?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 4, 2021, 8:57pm UTC](https://community.auth0.com/t/cant-login-with-postman-jmeter-since-login-form-is-javascript-are-there-workarounds-to-get-code-and-state-response/57304/3 "2021-02-04T20:57:38Z")

</div>

Hi @briantully ,

Welcome to the Community!

Have you read through our load testing docs? If you are load testing the Auth0 APIs you should fill out a request with our support team, and they will be able to help you with your implementation details.

> **[Load Testing Policy](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/load-testing-policy)**
>
> Describes Auth0's Load Testing Policy.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 27, 2021, 9:07pm UTC](https://community.auth0.com/t/cant-login-with-postman-jmeter-since-login-form-is-javascript-are-there-workarounds-to-get-code-and-state-response/57304/4 "2021-04-27T21:07:37Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
