3

I'm absolutely new to JMeter tool, so the question may be incorrect. I'm trying to send API request, which requires Digest auth. I tried to use HTTP Auth manager, but it doesn't have all fields to set, like nonce or opaque. Is there any way to pass them in request using JMeter tools?

Any ideas?

1 Answer 1

2

Most probably you are testing an API protected by OAuth therefore:

  • nonce: is basically a number used once so my expectation is that it is a some form of a timestamp so you should be able to generate one using JMeter's __time() function

  • opaque: looking at RFC 6749

    An opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client.

    so you should get this opaque state value from the previous response.

Check out How to Run Performance Tests on OAuth Secured Apps with JMeter for more information on bypassing OAuth login challenge in JMeter tests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.