Password Variable not passing the password
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020
09:50 AM
09-02-2020
09:50 AM
Password Variable not passing the password
Trying to pass a secure password through the aqHttpRequest using the encrypted variable type of password. And it seems to pass a generic name in the logs when I try to access it. If I hard code the password it works fine.
Trying to pass the password in aqHttpRequest["SetHeader"]("authorization", "Bearer " + Project["variables"]["AccessToken"]);
In both the web logs and the test complete logs it shows {RandomNumbers}TestProject2AccessToken.
If I use aqHttpRequest["SetHeader"]("authorization", "Bearer " + "ActualPassword"); it will work fine.
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020
12:25 AM
09-03-2020
12:25 AM
Hi, Use a "DecryptedValue" on these values.
example:
aqHttpRequest.SetHeader("access-token", Project.Variables.hipTestAccessToken.DecryptedValue);
aqHttpRequest.SetHeader("client", Project.Variables.hipTestClient.DecryptedValue);
aqHttpRequest.SetHeader("uid", Project.Variables.hipTestUId.DecryptedValue);
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020
05:57 AM
09-03-2020
05:57 AM
That worked, thank you!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020
06:45 AM
09-03-2020
06:45 AM
Great!
