Automatic Oauth
#4414
Replies: 2 comments 1 reply
-
|
Hi! You can inherit authentication in individual requests, and at the collection or folder level, you can configure it to pass the token either as a header or as a query parameter in the URL. You can also access the token using the variable: {{$oauth2."Token ID".access_token}} If you're seeing an error, it's likely due to another request failing during the OAuth authentication flow. You can check the timeline of the inherited requests to identify where it went wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have created a Collection where I have setup a Oauth2 authentication. According to documentation i can have an automatic flow for retrieving tokens and use them in my requests.
But it seems I cant get hold of the token.
The Auth on my collection gives me a token.

But it also say that an error occured while fetching the token. Find this a bit strange. Because I can manually copy the token and use it successfully in my "Secured API" requests.
In a Post Response script I try to store the token in a variable but the variable is never updated.

bru.setEnvVar('id_token', res.body.id_token);Here are some of the settings for the Oauth
So what am I doing wrong here?
And how can I get the working ID Token automatically in my other requests?
Thanks in advance
Daniel
Beta Was this translation helpful? Give feedback.
All reactions