libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: failed to parse supported auth schemes: The operation identifier is not valid
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
// 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với lệnh gọi Commands.Pull được minh họa và cấu hình FetchOptions/CredentialsHandler của nó trong LibGit2Sharp 0.26.2, sau đó tái hiện lỗi xác thực trên Windows 10 khi kết nối với GitHub. So sánh các cơ chế xác thực được hỗ trợ có liên quan và xác minh rằng một pull sử dụng thông tin xác thực đã báo cáo có thể hoàn tất mà không gặp lỗi phân tích cú pháp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, git, github
- Lĩnh vực
- authentication
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100