是否可以使用 PAT 浏览到 TFS 门户网站?

Is it possible to browse to the TFS web-portal using a PAT?

我有一个 tfs 测试服务器,并使用一个测试帐户和我的 TFS 管理员帐户颁发的 PAT,我想看看是否可以使用 PAT 浏览到 TFS 门户网站进行身份验证。

使用:

curl -u Test:57qxqxxfdcvnFAKEthisisfakeFAKE https://tfstest.company.com/tfs/collectionname

我得到了一些相当合理的 html 回复,这似乎表明它接受了身份验证。当我将此 html 保存到文件并打开它时,它会显示我可能期望的内容。我没有得到 css 或其他任何东西,但它似乎是返回的正常页面,没有任何浏览器在表达 html 时通常会得到的东西。

我还可以通过为那些 API 指定正确的 URL 来使用 REST API,因此我得出结论,PAT 身份验证按预期工作。

但是我可以打开 IE 并浏览到 https://tfstest.company.com/tfs/collectionname,通过某种方式,只使用 PAT 进行身份验证吗?

谢谢。

不,您不能直接使用 PAT 浏览器门户网站。

Personal access tokens (PATs) are alternate passwords that you can use to authenticate into Azure DevOps.

Azure DevOps uses enterprise-grade authentication to help protect and secure your data. Clients like Visual Studio and Eclipse (with the Team Explorer Everywhere plug-in) also support Microsoft account and Azure AD authentication.

For non-Microsoft tools that integrate into Azure DevOps but don't support Microsoft account or Azure AD authentication, you must use PATs. Examples include Git, NuGet, or Xcode. To set up PATs for non-Microsoft tools, use Git credential managers or create them manually.

当您第一次通过门户网站访问 TFS 服务器时,会出现一个 Windows 身份对话框。您需要填写您的帐户凭据和密码,然后选择“确定”按钮。