11 years ago
Passing a dynamic authentication token
So I've been using SoapUI for just a day. My business decided it would be a good tool to use for our Rest service API's we've developed. The tool seems quite in depth and I haven't figured everything out just yet, so I do apologize if the solution to my issue is simple and/or mundane.
I've created two Rest resources. One that grabs two important authentication variables and one that passes the authentication variables along with the request. But I've only gotten this working when I statically set this. Our authentication tokens reset daily, so I'm looking for a way to run the token method, and then pass the two variables to the next action method.
I have successfully figured out how to use the PropertyTransfer tool, but I can not seem to figure out how to concatenate the two values into one, and then pass that in along with the URL for the following action.
To give a very general idea, here's a quick breakdown:
TokenRequest -> returns token_type="bearer" and access_token: "random large string".
RequestMethod -> sends token_type + " " + access_token + " " request_string
I have not figured out how to concatenate the token_type and access_token into one authorization variable.
Any advice/help is certainly appreciate.
I've created two Rest resources. One that grabs two important authentication variables and one that passes the authentication variables along with the request. But I've only gotten this working when I statically set this. Our authentication tokens reset daily, so I'm looking for a way to run the token method, and then pass the two variables to the next action method.
I have successfully figured out how to use the PropertyTransfer tool, but I can not seem to figure out how to concatenate the two values into one, and then pass that in along with the URL for the following action.
To give a very general idea, here's a quick breakdown:
TokenRequest -> returns token_type="bearer" and access_token: "random large string".
RequestMethod -> sends token_type + " " + access_token + " " request_string
I have not figured out how to concatenate the token_type and access_token into one authorization variable.
Any advice/help is certainly appreciate.