libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: failed to parse supported auth schemes: The operation identifier is not valid
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
// code start
LibGit2Sharp.PullOptions options = new LibGit2Sharp.PullOptions();
options.FetchOptions = new FetchOptions();
options.FetchOptions.CredentialsProvider = new CredentialsHandler(
(url, usernameFromUrl, types) =>
new UsernamePasswordCredentials()
{
Username = _gitCredsUser,
Password = _gitCredsPassword
});
// User information to create a merge commit
var signature = new LibGit2Sharp.Signature(
new Identity(_gitUsername, _gitEmail), DateTimeOffset.Now);
// Pull
Commands.Pull(repo, signature, options);
// end code
I am using LibGit2Sharp dll of 0.26.0.0, from last few days I am getting "failed to parse supported auth scheme" error while doing git pull. My git repository is on GITHUB. I am sure there might security related changes done on github side. that's why this error come.
Reproduction steps
Expected behavior
git pull should work without error.
Actual behavior
Version of LibGit2Sharp (release number or SHA1)
0.26.2
Operating system(s) tested; .NET runtime tested
windows 10
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 LibGit2Sharp 0.26.2 中展示的 Commands.Pull 调用及其 FetchOptions/CredentialsHandler 配置开始,然后在 Windows 10 上针对 GitHub 重现身份验证失败。比较其中涉及的受支持身份验证方案,并验证使用所报告凭据的 pull 能够在没有解析错误的情况下完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git, github
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100