Team Services programmatic access is working for some users without credentials - why?

后端 未结 1 1958
逝去的感伤
逝去的感伤 2020-12-22 10:21

We have recently upgraded to VS 2017 and Visual Studio Team Services.

We have a set of automated tools that perform various source control related tasks on behalf

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-22 11:13

    Check this registry path: HKEY_CURRENT_USER\Software\Microsoft\VSCommon\14.0\ClientServices\TokenStorage\VisualStudio\VssApp (Tested in VS2017, it stores in 14.0 too)

    You also can check credential manager.

    On the other hand, you can change storage key:

    var c = new VssClientCredentials();
    c.Storage = new VssClientCredentialStorage(storageKind: "VssApp2", storageNamespace: "VisualStudio");
    TfsTeamProjectCollection _tfs = new TfsTeamProjectCollection(u, c);
    

    0 讨论(0)
提交回复
热议问题