I have 3 groups of variables in Paw.app for interacting with my API.
I have:
Global
for target API (Production, Preproduction, Development).Authentication
(Either OAuth2 client_credentials auth or OAuth2 password auth).Accounts
(used only when using password Authentication)My problem just declared and I think it didn’t do this earlier today so I don’t get what going wrong…
When executing a request containing an Header Authorization: {Authorization}
which is a Dynamic variable inside my Global
environment. The {Authorization}
gets replaced by a standard OAuth2
dynamic value.
I made a video to illustrate the problem.
It seems to happen when I change environment Authentication
from Client
to Password
. (When it needs to request a new token)
One thing you can do to help fix this is to uncheck the box "Automatically get or refresh token" in the OAuth 2 settings. But then you'll need yourself to hit the button "Get Access Token" from your OAuth 2 settings (in your Global
environment group) to get a new token when you get an invalid authorization response.
We planned to resolve this and have Paw be smarter and lookup where is the OAuth 2 settings in order to update the token there (instead of replacing the whole header). We should resolve this soon.