Ask a Question

Password Variable not passing the password

SOLVED
kylegogtp
Contributor

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.

3 REPLIES 3
Wamboo
Community Hero

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);

That worked, thank you!

Great!

cancel
Showing results for 
Search instead for 
Did you mean: