Open maulikcoderoom opened 5 months ago
I'm also seeing the same issue. The Auto-refresh Token
functionality works from the Postman desktop app, but when exporting and running from Newman, an expired token does not automatically refresh. This is a blocker for automation.
Dear,
I have the same requirement.
on https://learning.postman.com/docs/sending-requests/authorization/oauth-20/ we need to change : " You can use auto-refresh when manually sending the request. Auto-refresh isn't supported for scheduled runs, monitors, the Postman CLI, or Newman."
Regards
Running postman collection with Newman CLI , I noticed that after my OAuth2.0 access token timed out, refresh token was not automatically fetching for requests within the collection. Despite having set auto-refresh token and share token enabled, and exporting the collection to run with Newman. Each request inside collection was set to inherit auth from parent
What I'm seeking is to have each API request within the collection automatically fetch a new access token when the current one expires, while running the collection through Newman without manual intervention. Is there a way to enable share token for each auto-refreshed token so I can run collection with Newman CLI ?
Screenshots (if applicable):
Steps to reproduce the problem: Step 1: Set Auth type OAuth 2.0 for collection
Step 2 : Enable Auto-refresh token and Share token for collection
Step 3: Add required token information under Configure new token section for collection
Step 4: Add refresh Request - Request URL for collection
Step 5: Set Authorization "Inherit auth from parent" for each request inside collection
Step 6: Export collection and environment and run with Newman CLI