File: kerberos.go

package info (click to toggle)
git-lfs 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,808 kB
  • sloc: sh: 21,256; makefile: 507; ruby: 417
file content (15 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
}