I need to implement a jmeter script from this cURL command:
curl -X POST -u "Oezvjl4Ffju8Y0sLTXwfTuUHyHMa:vwe7v7AaontzlOfiefCRjrYWpUwa"
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8"
-d "grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer&assertion=PD94bWwgd...."
-k https://$host/oauth2/token
The -u flag should specify the <Client Id>:<Client Secret> value. The assertion parameter should specify the base64url encoded SAML2.0 assertion.
How do I value the parameter -u and -d in jmeter request? I try using HTTP Header Manager as below:
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
client_id: Oezvjl4Ffju8Y0sLTXwfTuUHyHMa
code: vwe7v7AaontzlOfiefCRjrYWpUwa
and I put grant_type=... in the body data of http post request.. but it doesn't work.