Repository navigation
Initial NTLM Proposal - #617
WillHipschman wants to merge 1 commit into
Conversation
|
Does Git support NTLM authentication without having to go through an HTTP proxy? This is the only non-proxy info that I could find. I'm guessing you're trying to do the same thing here. |
|
Yeah, I'm trying to do something similar. The link above points to a change made by some of my colleagues, to accomplish the same thing I'm trying to do for git-lfs. |
|
I'm not in favor of users setting the Also, I think instead of Note to self: the current API probably isn't returning |
|
Noticed that the ntlm spec you linked uses that header too: |
|
Definitely agree with deciding the auth type based on the server response. So we then have:
|
|
The batch API client should automatically skip this extra hop (if you're referring to the initial auth-less request that returns 401). Check out the Maybe we can set |
|
For performance reasons, it would be nice to have the optional config which says "hey, I know this will be NTLM so skip the failed auth challenge and proceed directly to Go and collection $200". This can be hyper critical in fast build scenarios where build machines do not have branch or even repo affinity. |
|
@whoisj The batch API client already uses the |
|
I agree we can use the Without ntlm set With ntlm set |
|
It's also worth noting that once we do the above exchange once, every request sent through that same httpClient won't have to re-authenticate, so this will be efficient from a batching perspective. |
|
Yes, that's handled here. |
|
I added a new If the go package can work with |
|
I've updated the proposal to include the lfs.{endpoint}.access scheme and included info on storing usernames. Why can't we use Www-Authenticate? It's specific to the NTLM protocol, so I really don't think we should change it. |
Browser security stuff. We don't want LFS API urls triggering login popups in browsers. |
|
Closing this since we merged #714 🤘 |
Here's an initial proposal for NTLM auth in git lfs.
I need to update it with specifics on the Client interface but I want to wait until #611 is merged to do that.
Let me know if you have thoughts or questions.
Hacked together implementation of push here https://github.com/WillHipschman/git-lfs/tree/ntlm