git-lfs/lfsapi/kerberos.go
brian m. carlson 087db1de70
Set package version to v3
Since we're about to do a v3.0.0 release, let's bump the version to v3.

Make this change automatically with the following command to avoid any
missed items:

  git grep -l github.com/git-lfs/git-lfs/v2 | \
  xargs sed -i -e 's!github.com/git-lfs/git-lfs/v2!github.com/git-lfs/git-lfs/v3!g'
2021-09-02 20:41:08 +00:00

16 lines
493 B
Go

package lfsapi
import (
"net/http"
"github.com/git-lfs/git-lfs/v3/creds"
)
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
// 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)
}