Commit Graph

14 Commits

Author SHA1 Message Date
Marat Radchenko
482260c7e3 Fix error strings to follow Go guidelines
Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
2019-10-22 17:33:49 +03:00
AJ Henderson
16967277bb Use flag on ntlm_auth implementation to determine if SSPI should be attempted. 2019-05-03 15:36:04 -04:00
AJ Henderson
0ab0891fef Fix syntax error. 2019-05-01 12:57:08 -04:00
AJ Henderson
28ecab90f2 Style fixes from code review. 2019-05-01 12:45:21 -04:00
AJ Henderson
377eb8d111 Initial pass at wrapping the credential data so that prompting the user can be delayed when necessary. 2019-04-18 10:41:55 -04:00
brian m. carlson
c752dcdf51
Move credential handling to its own package
In a future commit, we're going to be accessing credential handling from
multiple packages.  To avoid an import loop, move credential handling
into its own package.  Update all the callers of the credential handling
code to use a qualified name.

Where there is a local variable called "creds", which would conflict
with our package name, rename it "cred" instead.
2018-09-24 15:09:22 +00:00
Taylor Blau
b1c2b42122 lfsapi: teach do() and friends 'remote' 2018-05-25 09:24:15 -07:00
Taylor Blau
1a3a19cfd8 lfsapi: teach do() to track requests via when redirected 2018-05-25 09:11:22 -07:00
Fabrizio Steiner
2a166fd94e Use SSPI ntlm authentication on windows:
This brings support for SingleSignOn on windows using the default credentials of the currently logged in user if
an empty username and empty password is provided from gitcredentials. This plays well with the Git for windows
implementation which stores an empty username and password if it should use the default credentials.
2018-02-27 17:02:57 +01:00
Fabrizio Steiner
1b4cb3ebf6 Split ntlm implementation into a generic ntlm handling and a ntlm authentication process 2018-02-16 12:35:42 +01:00
Taylor Blau
bda2fe845f lfsapi/{auth,client}: introduce do() method to circumvent header altering 2017-11-16 13:50:40 -08:00
risk danger olson
0af31c4c6a lfsapi: clean up cloneRequest() from httputil ntlm support 2017-01-06 14:06:25 -07:00
risk danger olson
b73674e5f8 lfsapi: port ntlm support from httputil 2017-01-06 11:50:24 -07:00
risk danger olson
272e2d2623 add ntlm file 2016-12-20 12:23:04 -07:00