即使应用程序已卸载,如何在本地保留密码/应用程序数据而无需漫游 - 使用凭据管理器

发布于 2025-01-11 10:40:28 字数 309 浏览 0 评论 0原文

在 UWP 中,凭据管理器是存储应用程序卸载和安装之间敏感信息的好地方。 我发现凭据管理器默认启用设备之间的漫游,并且无法以编程方式关闭。 我的问题是

  1. 如果我希望在本地保留密码(即使应用程序已卸载)怎么办?我需要在应用卸载和安装之间保留一些数据,同时又不能在设备之间漫游?

  2. PasswordVault 同步(如果您使用的是 Microsoft 电子邮件)。其他类型的登录(例如 AD 或 AzureAd)怎么样?此凭据同步是否适用于任何登录类型或仅适用于 Microsoft 电子邮件登录?

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独木成林 2025-01-18 10:40:28

如果我希望在卸载应用程序后仍将密码保留在本地,该怎么办?我需要在应用卸载和安装之间保留一些数据,同时又不能在设备之间漫游?

不得不说,Credential Locker 并不是为这种场景而设计的。如果您想将用户信息保存在本地,可以选择本地数据库等其他方式。如您所知,凭据储物柜将漫游数据,我们无法禁用此功能。因此,只要您以 Microsoft 帐户登录,数据就会在设备之间共享。

PasswordVault 同步(如果您使用的是 Microsoft 电子邮件)。其他类型的登录(例如 AD 或 AzureAd)怎么样?此凭据同步是否适用于任何登录类型或仅适用于 Microsoft 电子邮件登录?

凭据储物柜文档。但Microsoft帐户应该指向您用于登录系统的帐户。所以我怀疑AzureAD帐户不起作用。我的建议是您可以直接使用您的AzureAD帐户进行测试。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文