Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WinHTTP: support best auth mechanism #4055

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

Merged
merged 1 commit into from
Jan 16, 2017
Merged

Conversation

ethomson
Copy link
Member

For username/password credentials, support NTLM or Basic (in that order of priority). Use the WinHTTP built-in authentication support for both, and maintain a bitfield of the supported mechanisms from the response.

Fixes #4039

@ghost
Copy link

ghost commented Jan 16, 2017

Any chance someone can pull in this one soon? It's blocking for users of Gitkraken who have upgraded their TFS servers to 2017.

For username/password credentials, support NTLM or Basic (in that order
of priority).  Use the WinHTTP built-in authentication support for both,
and maintain a bitfield of the supported mechanisms from the response.
@ethomson
Copy link
Member Author

FYI @carlosmn - I rebased this to resolve conflicts.

@carlosmn carlosmn merged commit df4dfaa into libgit2:master Jan 16, 2017
@MustafaJamal
Copy link

After fixing of this issue, when we should expect the fixing of following LibGit2Sharp issue:

libgit2/libgit2sharp#1168

Can anyone please tell me as we are facing issues when using LibGit2Sharp with TFS2015/TFS2017.

Thanks!

@tkelman
Copy link
Contributor

tkelman commented Jul 5, 2017

We can try to reduce this and report on its own, but x-ref JuliaLang/julia#22681 we're seeing that after this change an empty username and password now gives a generic GIT_ERROR on Windows, whereas on other platforms (and Windows on prior versions of libgit2) it gives GIT_EAUTH. Is this an expected behavior change?

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

Successfully merging this pull request may close these issues.

4 participants