First of, I scoured the net as well as this forum for an answer or a hint. Unfortunately, I came up empty.
I’ve got an API collection for which I had set up a Postman mock server. The actual dev API makes use of oAuth 2 authentication for some of the endpoint calls.
I have two environments set up, one for the dev API environment and the other for the mock server. This allows me to switch the collection, for testing purposes, between the two environments. This works great. The problem is that the actual dev API makes use of aOuth 2 for authentication. For this reason, if I switch the environment to the mock server, the same call fails with a 401 Unauthorized error. Is there some way to overcome this on the mock server? In other words: how to mimic oAuth authentication on a Postman mock server?
Thank you in advance.
Images that may help to understand the question
Response from call against actual dev API
Response when doing the same call against the Postman mock server