You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Abhijit Gupta <ab...@icelero.com> on 2020/01/30 09:35:53 UTC

Jmeter OAuth2 authentication

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

Re: Jmeter OAuth2 authentication

Posted by "glinius@live.com" <gl...@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: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org