Jmeter OAuth2 authentication

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter OAuth2 authentication

abhijitgupta123
Hi All,
    I am using Postman to get access_token . When I do request token,

Website asks for username and password and then I get access token.  I want
to automate this process

Using Jmeter, without any user intervention.

  I don’t want to type in username/password in browser. I want to send all
such details through Jmeter.


How can I do this ?


On Postman I use following:  (*OAuth2*)


   - Grant Type: Authorization Code
   - Callback URL:
   - Auth URL:
   - Access Token URL:
   - Client ID:
   - Client Secret:
   - Scope:
   - State:
   - Client Authentication: Send client credentials in body


Best Regards,

Abhijit
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter OAuth2 authentication

glinius@live.com
You need to provide a  redirect URL
<https://www.oauth.com/oauth2-servers/redirect-uris/>   where you will be
routed by the authentication endpoint, normally it's the URL of the website
where you need to type the credentials.

If you want to fully get rid of this UI-based part you could use i.e.  HTTP
Mirror Server
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Mirror_Server>  
as the target for this redirect URL and extract all the necessary dynamic
values from the redirection request using a suitable JMeter's
Post-Processor, i.e.  Regular Expression Extractor
<https://guide.blazemeter.com/hc/en-us/articles/207421325-Using-RegEx-Regular-Expression-Extractor-with-JMeter-Using-RegEx-(Regular-Expression-Extractor)-with-JMeter>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]