I implemeted authenticaion using Passwordvault . On retrieving vault, I did get userName but password was an empty string.
I though that I might be doing something wrong. So I played with Passwordvault Sample and I am facing the same situation. I replace this code in sample for scenario 1
var creds = vault.findAllByResource("Scenario 1");
document.getElementById("Scenario1WelcomeMessage").value = "Welcome to Scenario 1, " + creds.getAt(0).userName;
with
var creds = vault.findAllByResource("Scenario 1");
document.getElementById("Scenario1WelcomeMessage").value = "Welcome to Scenario 1, " + creds.getAt(0).password;
but returns an empty string.
In other words, password field in the object is empty.
So what is wrong here. On a side note, Credential Manager in Control Panel does show the password.