cancel
Showing results for 
Search instead for 
Did you mean: 

Adding parameter after an Oauth token in the authorization header

SOLVED
Highlighted
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

Re: Adding parameter after an Oauth token in the authorization header

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

View solution in original post

2 REPLIES 2
Highlighted
Staff

Re: Adding parameter after an Oauth token in the authorization header

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

View solution in original post

Highlighted
New Contributor

Re: Adding parameter after an Oauth token in the authorization header

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

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite