简体   繁体   中英

How to preserve passwords/appdata locally without roaming even if the app is uninstalled - using Credential manager

In UWP Credential manager is a good place to store sensitive information between application uninstallations and installations. I see that the Credential Manager by default enable roaming between devices and can't be turned off programmatically. My questions are

  1. What if I want the password to be preserved locally even if the app is uninstalled? I have a requirement to keep some data between uninstalls and installs of the app and at the same time without roaming between devices?

  2. PasswordVault sync, if you're using your Microsoft email. What about other types of logins such as AD or AzureAd? Does this credential syning apply to any login types or just Microsoft email login?

Thanks.

What if I want the password to be preserved locally even if the app is uninstalled? I have a requirement to keep some data between uninstalls and installs of the app and at the same time without roaming between devices?

I have to say that the Credential locker is not designed for such a scenario. If you want to save the user information locally, you could choose other ways like a local database. As you've already known, the Credential locker will roam data and we can't disable this. So the data will share between devices as long as you are logged as Microsoft accounts.

PasswordVault sync, if you're using your Microsoft email. What about other types of logins such as AD or AzureAd? Does this credential syning apply to any login types or just Microsoft email login?

There is no description of this on the Credential locker document . But the Microsoft account should point to the account that you used to log in to the system. So I suspect the AzureAD account doesn't work. My suggestion is that you could directly make a test with your AzureAD account.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM