Forum Discussion

kylegogtp's avatar
kylegogtp
Contributor
5 years ago

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.

  • 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);
  • Wamboo's avatar
    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);