Ask a Question

Adding parameter after an Oauth token in the authorization header

SOLVED
csharpe
New Contributor

Adding parameter after an Oauth token in the authorization header

I need to pass an additional parameter value after the Oauth2 token in the authorization header. I'm not sure how to do this. I have used Oauth2 in SOAPUI NG pro before (credentials grant) but have never had to add an additional parameter.  Any help or direction would be greatly appreciated.

2 REPLIES 2
GillerM
Staff

For OAuth you can still parameterize an additional HEADER component as shown here - http://readyapi.smartbear.com/structure/requests/rest/parameters/header

 

Another global option you could do was implement events - http://readyapi.smartbear.com/readyapi/events/start

Here's the sample code for adding a custom header to all outgoing messages - https://www.soapui.org/scripting-properties/tips-tricks.html#12-Add-custom-HTTP-header-to-requests

 Thank you.   The suggestions were very helpful.  I think I will be able to work out my issues based on your suggestions. 

cancel
Showing results for 
Search instead for 
Did you mean: