Hi Experts,
we are testing rest services, and our requirement is passing Mac signature body to Authorization headers when we are sending request. we are able to dynamically generate our Authorization ID which contains 4 values.
Our code is like :
val dataBuilder = new StringBuilder()
newstr=“MAC id=“xxxx””+",ts=""+timestamp+"""+",nonce=""+nonce+"""+",macsignature=""+mac+""";
once we generated timestamp, nonce and and mac signature, we have to pass this in below code.
val httpProtocol = http
.baseURL(“Url”)
.inferHtmlResources()
.authorizationHeader(""“newstr”"")
.contentTypeHeader(""“application/json”"")
we are able to pass hardcoded values , but when we are generating dynamically, we are unable to pass the string (newstr) to authorization header.
Could you please help on how to pass this value to header?
Thanks for your help.
Regards,
Anitha.