]> source.dussan.org Git - jgit.git/commit
Enable providing credentials for HTTP authentication 71/1671/3
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 22:14:35 +0000 (14:14 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 22:58:44 +0000 (14:58 -0800)
commit308e074f6570c6a12272db994b095b38a0c922f8
tree22c13652f46a9e6dab3c9904cc1abe31eced4bb9
parent20a5a34444df017ba2232313a8137d220980883d
Enable providing credentials for HTTP authentication

This change is based on http://egit.eclipse.org/r/#change,1652
by David Green. The change adds the concept of a CredentialsProvider
which can be registered for git transports and which is
responsible to return credential-related data like passwords and
usernames. Whenenver the transports detects that an authentication
with certain credentials has to be done it will ask the
CredentialsProvider for this data. Foreseen implementations for
such a Provider may be a EGitCredentialsProvider (caching
credential data entered e.g. in the Clone-Wizzard) or a NetRcProvider
(gathering data out of ~/.netrc file).

Bug: 296201
Change-Id: Ibe13e546b45eed3e193c09ecb414bbec2971d362
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: David Green <dgreen99@gmail.com>
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/UnsupportedCredentialItem.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/CredentialItem.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/CredentialsProvider.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UsernamePasswordCredentialsProvider.java [new file with mode: 0644]