2019-11-28 19:57:16 +00:00
|
|
|
package lfsapi
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2021-09-01 19:41:10 +00:00
|
|
|
"github.com/git-lfs/git-lfs/v3/creds"
|
2019-11-28 19:57:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (c *Client) doWithNegotiate(req *http.Request, credWrapper creds.CredentialHelperWrapper) (*http.Response, error) {
|
|
|
|
// There are two possibilities here if we're using Negotiate
|
|
|
|
// authentication. One is that we're using Kerberos, which we try
|
2021-01-12 22:44:28 +00:00
|
|
|
// first. The other is that we're using NTLM, which we no longer
|
|
|
|
// support. Fail in that case.
|
|
|
|
return c.doWithAccess(req, "", nil, creds.NegotiateAccess)
|
2019-11-28 19:57:16 +00:00
|
|
|
}
|