cancel
Showing results for 
Search instead for 
Did you mean: 

Password Variable not passing the password

SOLVED
Highlighted
Occasional 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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: Password Variable not passing the password

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

View solution in original post

3 REPLIES 3
Highlighted
Community Leader

Re: Password Variable not passing the password

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

View solution in original post

Highlighted
Occasional Contributor

Re: Password Variable not passing the password

That worked, thank you!

Highlighted
Community Leader

Re: Password Variable not passing the password

Great!

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors