How can I get the result of the OAuth2 authorization token into a variable?
I’ve successfully set up the auth for my collection, getting the token that’s automatically put in the header as a bearer token.
We have this security service that has an introspection end point, you pass the token in a request parameter and it tells you details about it. I want to get he token as a variable.
We’re using the auth code grant, so I don’t want to do this manually in the pre-request script if I can help it.