简体   繁体   English

为什么VSTS要求GIT凭证管理器而不是简单的用户名/密码?

[英]Why does VSTS require GIT credential managers instead of just a simple username/password?

I just set up Git to work with VSTS on visualstudio.com but I'm confused about the roundabout credential managers I had to use to get it to work especially on MacOS. 我只是在Visualstudio.com上将Git设置为可与VSTS一起使用,但是我对必须使用环回式凭据管理器才能使它特别是在MacOS上使用感到困惑。

What's the reason for these requirements as opposed to simply entering my username and password for git hosted on VSTS? 与仅输入我在VSTS上托管的git的用户名和密码相比,这些要求的原因是什么?

The credential manager allows for two factor authentication. 凭证管理器允许两因素验证。

You can just use various other mechanisms for authentication one of which is alternate credentials which is essentially username, password. 您可以使用其他各种身份验证机制,其中一种是备用凭据,本质上是用户名,密码。

See more details here- Authenticate with your Git Repos - VSTS 在此处查看更多详细信息- 使用Git存储库 -VSTS进行身份验证

You don't need to use the credential manager -- you can also authenticate with SSH: 您不需要使用凭据管理器,也可以使用SSH进行身份验证:

https://www.visualstudio.com/en-us/docs/git/use-ssh-keys-to-authenticate https://www.visualstudio.com/en-us/docs/git/use-ssh-keys-to-authenticate

Using git credential manager (GCM), you only need to authenticate for the first time. 使用git凭证管理器(GCM),您仅需要首次进行身份验证。 It will save you to authenticate every time. 它将节省您每次进行身份验证的时间。

Once authenticated, the credential manager will create and cache a personal access token for future connections to the repo. 身份验证后,凭据管理器将创建并缓存个人访问令牌,以供将来与回购连接使用。 Git commands that connect to this account will not prompt for user credentials until the token expires or is revoked through Team Services/TFS 在令牌过期或通过Team Services / TFS吊销令牌之前,连接到该帐户的Git命令不会提示输入用户凭据。

You can view detail about GCM fot mac here . 您可以在此处查看有关GCM fot mac的详细信息。

And git credential managers is not essential if you want to enter username and password every time. 如果您想每次输入用户名和密码,则git凭据管理器不是必需的。 You can refer this instructions to install/uninstall GCM . 您可以参考此说明来安装/卸载GCM

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 git credential.helper 不存储用户名密码 - git credential.helper does not store username password 为什么git仓库管理者将git用户名与ssh连接一起使用? - Why do git repository managers use the `git` username with ssh connectivity? 运行 git credential fill 时避免用户名/密码提示 - Avoid username/password prompt when running git credential fill git:osxkeychain凭证助手无声地记住用户名/密码 - git: osxkeychain credential helper silently fails to remember username/password git:用户名或密码无效,即使在 Wincred 中也没有凭据管理器或凭据 - git: Invalid username or password even tough no credential manager or credentials in Wincred 当代理不需要用户名或密码时,将git设置为代理服务器 - Set up git to proxy server when proxy does not require username or password Git 不需要用户名和密码。 我怎样才能改变它呢? - Git DOES NOT require username and password. How can I change it to do so? ksshaskpass 需要什么用户名和密码? - What username and password does ksshaskpass require? Simple-git在每个git命令上请求用户名和密码 - Simple-git requesting username and password on each git command git commit --author不需要密码吗? - git commit --author does not require password?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM