| 1 | package lfsapi |
| 2 | |
| 3 | import ( |
| 4 | "net/http" |
| 5 | |
| 6 | "github.com/git-lfs/git-lfs/v3/creds" |
| 7 | ) |
| 8 | |
| 9 | func (c *Client) doWithNegotiate(req *http.Request, credWrapper creds.CredentialHelperWrapper) (*http.Response, error) { |
| 10 | // There are two possibilities here if we're using Negotiate |
| 11 | // authentication. One is that we're using Kerberos, which we try |
| 12 | // first. The other is that we're using NTLM, which we no longer |
| 13 | // support. Fail in that case. |
| 14 | return c.doWithAccess(req, "", nil, creds.NegotiateAccess) |
| 15 | } |