I am using below code in AppOne to add a credential to Web Credentials in Windows Credential Manager.
var vault = new Windows.Security.Credentials.PasswordVault();
vault.Add(new Windows.Security.Credentials.PasswordCredential("AAA", "user1", "password1"));
Then I would like to access it in AppTwo. I found AppTwo cannot access the record I saved above. I tested it out and seems only the application who saves the credential could access it. I think this makes sense. But is there a way I can save a credential in AppOne and fetch it in AppTwo? Can I save through the Windows Credentials instead of saving in Web Credentials in Credential Manager pro-grammatically by using C# API directly? And even if I can save the credential into the Windows credentials, can I share it between different applications?
My second question is if AppOne 1.0 saves a credential into credential manager, then AppOne is upgraded to 2.0, or if windows is upgraded from win8
to win10
, does the saved credential is still valid and correct? I search online but kind of get lost.
Thanks!!