I am trying to use a collection that requires a jwt token be input. This token is not static and times out after a prerequisite amount of time. The token formation documentation for the api is written in python. When I try to use OAuth2.0, there are not enough application secret fields. This application has a unique ID, token ID and a secret so using this method is not possible. I would like to know how I can pipe this python code into postman to update the Bearer Token field? Is this even possible? Am I not using OAuth 2.0 correctly? Any advice is welcomed! Thank you for the help.
You can reference this blog post to see how you can auto generate/renew an OAuth2.0 token in a collection pre-request script.
Sounds like you’ll need to modify the script slightly to accommodate the additional fields you have, but it shouldn’t be too bad.