I Have API's to retrieve the token and get Positions nested under Token Generator and API Group threads.
I need to retrieve token only once and set the token to the property and access it across multiple threads.
Reponse from the post request:
{"token":"eyJhbGciOiJIUzUxMddiJ9.eyJ1c2VyX25hbWUiOiJhZG1pbiIsImxhc3RfbmFtZSI6ImFkbWluIiwiZmlyc3RfbmFtZSI6ImFkbWluIiwidXNlcl9pZCI6OCwicm9sZSI6IkFETUlOIiwiaWF0IjoxNTg2NDQ3MTc2LCJleHAiOjE1OssdDY1MzM1NzZ9.Q9-DT0q7uR53prnZFw1cTFIAlhqzj-qzNwr3qCbFn5B4irAxkR469aGxQK5VhvfEoPk4R_jZwyOpERzmVcRI6A"}
JSON Extractor in Token Generator thread
BeanShell PostProcessor in Token Generator thread
props.put("token", jwt_token);
HTTP Header Manager in API Group thread
Authorization : Bearer ${__P(token)}
but my request headers in second API:
Authorization: Bearer 1
What am i missing here?