![]() ![]() It will be good if someone can review this and let us know if this is secure. At least now I am not seeing the password value in the log when I call SetText. Mwspencer at 17:35 Add a comment 1 Answer Sorted by: 3 You have to create a custom control to do that. When the user clicks the textbox is becomes invisible and the password box becomes visible and in focus. In WPF there is an extra control for that: PasswordBox. Simply make a textbox over the passwordbox with your placeholder text. However there is workarounds that we go over in the vi. I am not sure how secure this solution is. the textbox in Windows Forms used to have a PasswordChar property. Because security matters, you will need at one point to use a PasswordBox in your WPF application (you know, the textBox hiding the password with stars). PasswordBox is a tricky control that does not allow you to bind the password to view model property. In the script, where we are populating the password in the AUT GUI, we first initialize the encrypted password variable with the value of decrypted password variable. The next question I got was Well, what about a PasswordBox PasswordBox is a bit tricker since it doesnt allow text to be displayed in the clear so our. ![]() ![]() Since there is no way to pass a Password type value on the command line, we have defined two project variables for AUT password. These credentials are passed to TestExecute command line using /PrjVar switch. The pipeline fetches the credentials of the AUT from Azure Key Vault. We have a Azure Pipeline to execute the test cases. Please let me know where in the log file the command line is written. I still have a concern because you mentioned that the command line is written to the log files. My problem is solved by using a project variable of type Password. ![]()
0 Comments
Leave a Reply. |