I have a 3-legged OAuth setup.
The first step returns a redirect with a Location header that has the authorization token (code) as a query parameter.
This header looks like follows -
I want to extract the value of the query param “code” whose value is “fGTxeQG8” so I can save it in a collection variable and use it in the next step for getting an access token.
How do I do this?
Since postman doesn’t recognize this as a URL object, none of the standard methods are working, such as what works on the request URL itself, which postman understands as a URL object and parses easily.