Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibGit2Sharp.LibGit2SharpException: failed to parse supported auth schemes: The operation identifier is not valid #1226

Closed
Rpatil3g opened this issue Jul 7, 2023 · 1 comment

Comments

@Rpatil3g
Copy link

Rpatil3g commented Jul 7, 2023

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);

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.

@Rpatil3g Rpatil3g closed this as completed Jul 7, 2023
@Rpatil3g Rpatil3g reopened this Jul 7, 2023
@Rpatil3g
Copy link
Author

Rpatil3g commented Jul 7, 2023

closed due to duplicate issue, here is original issue: libgit2/libgit2sharp#2048

@Rpatil3g Rpatil3g closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant