Git Product home page Git Product logo

Comments (5)

ethomson avatar ethomson commented on June 11, 2024

You mentioned #2065 but I think that only applies to proxies? I'm not sure if something else changed. Can you show the set up for your credentials and / or auth callback, and the callback that you're using (if you're using one)?

What kind of provider are you authenticating to? Do you know what mechanism you are expecting to use? (Basic, NTLM, etc)

from libgit2sharp.

MichielOda avatar MichielOda commented on June 11, 2024

In the meantime I tried every version between 0.26.2 & 0.30.0 and it starts to break when I update to 0.29.0. I mention #2065 as that caused breaking changes compilation-wise. But it seemed a very small change to fix it (move CredentialsProvider & OnTransferProgress (2 properties of CloneOptions we used) to the FetchOptions from the CloneOptions).

We use the DefaultCredentials() for the handler:
libGitCredHandler = (_url, _user, _cred) => new DefaultCredentials();

And the OnTransferProgress is basically eventing if I understood correctly and is used to show the progress in the UI.

I did the same changes in v0.28.0 as well (moving those to FetchOptions) and everything still works.

from libgit2sharp.

michaelmsonne avatar michaelmsonne commented on June 11, 2024

I have some small issues with upgradeing my tool here https://github.com/michaelmsonne/GitHubBackupTool to use the new v. as stuff break and is changed - like 'CloneOptions' does not contain a definition for 'RepositoryOperationCompleted' and so on. Have tryed to move to the FetchOptions but not all works..

So for now the tool use v. 0.28

from libgit2sharp.

davidsr2r avatar davidsr2r commented on June 11, 2024

Tracking this issue also, I can't set credentials to clone a repo at the moment so I'm going to go to v 0.28
Found the resolution in the mentioned issue below, we can resolve using:

var cloneOptions = new CloneOptions();
cloneOptions.FetchOptions.CredentialsProvider = ...

from libgit2sharp.

MichielOda avatar MichielOda commented on June 11, 2024

Any update/idea on why the credentials don't work anymore from 0.29 onwards? We're stuck on 0.28 but as that version has been made deprecated, our security team wants us to update this NuGet.

from libgit2sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.