Git-Credential-Manager-for-Windows还可以保存无效凭据

时间:2016-08-18 11:14:32

标签: git github tortoisegit credential-manager

我从这里使用Git-Credential-Manager-for-Windows版本1.6.0(也尝试过1.5.0):https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases

Git-Credential-Manager-for-Windows包括我正在使用的Git for Windows(试过2.9.3和2.9.2)https://github.com/git-for-windows/git/releases

我有以下问题:

如果您激活凭据管理器,例如拉出存储库,系统会询问您的登录凭据。凭证将保存在Windows凭据管理器(控制面板)中,用户无需重新输入凭据。

但如果用户输错了凭据或更改了密码,凭证管理员会保存错误的凭据。

我在git-credential-manager-for windows命令的帮助页面找到了以下内容:

    Git Configuration Options:

(...)

  validate     Causes validation of credentials before supplying them
               to Git. Invalid credentials get a refresh attempt
               before failing. Incurs some minor overhead.
               Defaults to TRUE. Ignored by Basic authority.

(...)

  preserve     Prevents the deletion of credentials even when they are
               reported as invalid by Git. Can lead to lockout situations once credentials
               expire and until those credentials are manually removed.
               Defaults to FALSE.

我理解如下:

凭据管理器应该验证凭据(默认情况下这是真的),不应该阻止删除(如果它们是错误的) )

但是凭证不会被删除,即使它们是错的!

我已经尝试在配置文件中手动设置“验证”和“保留”,但没有成功......

我知道我总是可以从控制面板手动删除凭据,但这不是我公司喜欢的解决方案。

祝你好运

的Lukas

0 个答案:

没有答案