I have set up OAuth 2.0 Authorization with Authorization Code flow (i.e. user needs to authenticate) for a collection and i would like to automatically set the response, which includes access token, refresh token and other properties, as variables. Currently i am having to copy things manually from the UI.
after clicking on Get New Access Token
I get the access token in the UI but i also want to be able to automatically save the tokens into variables
If i go to the console i can see the json response so i would like to find a way to access that response and save the tokens please
Since I am using Authorization Code flow, it requires a user to sign in so it won’t be possible to just have a post request in the pre-script, which works if it’s a Client Credentials flow
thanks