Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mzandrena
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.
-
Hi,
I have a set of http files and environments i ported over from Intellij http files. My problem is that i have two environments. For one of them, I aquire the token using the $auth.token(…) method. For the other, I can’t use that method because no localhost URI is an allowed redirect URI.
So instead of using this method, I thought about pasting a token for that environment using $input.
Both methods individually work, but i was not able to find a way to switch between these methods depending on the selected environment. I first thought about moving the functionality to a script block which would then set a token variable, but i don’t know how i would trigger the auth and the input functions from the script.
Could you give me a hint how i could make that work, or do you have any other ideas how i could achieve switching between getting the token using $auth and supplying the token in another way depending on the environment.
Beta Was this translation helpful? Give feedback.
All reactions