【问题标题】:How to clear credential cache by CredentialProvider.VSS.exe如何通过 CredentialProvider.VSS.exe 清除凭证缓存
【发布时间】:2019-01-14 19:03:32
【问题描述】:

我在Azure Artifacts 创建了一个 NuGet 提要。我在我的项目中安装了NuGet.exeCredentialProvider.VSS.exe。我可以列出/获取/推送 NuGet 包。此时,完全没有问题。但我想清除由CredentialProvider.VSS.exe 创建的凭据缓存。我该怎么做?

【问题讨论】:

    标签: azure-devops nuget azure-artifacts


    【解决方案1】:

    我想清除由 CredentialProvider.VSS.exe 创建的凭据缓存。我该怎么做?

    CredentialProvider.VSS.exe 在注册表路径中存储和使用凭据。 如果要清除凭据,可以从注册表中删除令牌值。

    Computer\HKEY_CURRENT_USER\Software\Microsoft\VSCommon\14.0\ClientServices\TokenStorage\VisualStudio\VssApp\{xxxx}
    

    【讨论】:

    • 这正是我所需要的。谢谢!你怎么知道?我找不到这方面的任何信息!
    • How do you know that?我也尝试了很多方法来清除凭证,最后我从这个SO thread得到了想法。根据我的测试,它有效。
    • 对我不起作用;删除此密钥,清除所有 nuget 缓存,重新启动计算机,在本地重新构建 - 并且 nuget 只是从私人提要进行身份验证和下载。天知道怎么...
    【解决方案2】:

    nuget.exe locals plugins-cache -clear 应该这样做。如果您还没有,您需要download nuget.exe。不幸的是,dotnet nuget locals 中似乎缺少 plugins-cache :(

    【讨论】:

    • 我试过了。甚至插件缓存也被清除了。它仍然无法以另一个人的身份登录。它是自动认证的。 :(
    猜你喜欢
    • 2015-11-22
    • 1970-01-01
    • 2012-03-30
    • 2012-09-03
    • 2018-06-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多