Get OAuth2 token in variable

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.

@jeffwalker-rxb Welcome to the Community :partying_face:

Yes, you just need to store that as variable and use it the subsequent requests.

There’s lot of questions related to in the forum. This post will be super useful to you.