'Exporting AUth2.0 bearer token with postman collection file does NOT work when executed using newman on cmd
Below are the steps
Add bearer token to the header on Main collection tab, and the request as shown below

And now manually check what happens when we run - Get comments request, use the 'inherit auth from parent' option - it shows 200 OK, and returns the comments as shown below
Expected: 200 OK status Actual : 401 Unauthorized stauts
Any help will be really appreciated, thanks
Solution 1:[1]
Every Sub folder should refer to the 'inherit from parent ' in the auth method . In this case, make sure the sub folder ACCOUNT has the auth method set to 'inherit from parent'. And make sure to click the save button before exporting the collection file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Naveen DINUSHKA |






