]> source.dussan.org Git - jgit.git/commit
Fix authentication type names broken by 0b5441a8 49/27249/4
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 25 May 2014 22:45:49 +0000 (00:45 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 27 May 2014 08:20:42 +0000 (10:20 +0200)
commitf80b41fbc1830316800d25c8e4c283dd96464956
treee1f28b62b71db0bad752bee11d4b48d4ef271bf1
parentc1f11fafce265a1bf1156e54324d9bae7b3c4faa
Fix authentication type names broken by 0b5441a8

0b5441a8 introduced an enum for authentication types and changed the
case of digest and basic authentication type names to all uppercase.
This broke digest authentication at least when using Gerrit as the git
server.

According to RFC2617 [1] "Basic" and "Digest" is the literal to be used
in authentication headers and not "BASIC" [1] and "DIGEST" [2].
According to RFC4559 "Negotiate" [3] is used for SPNEGO based
authentication.

[1] http://tools.ietf.org/html/rfc2617#page-5
[2] http://tools.ietf.org/html/rfc2617#page-8
[3] http://tools.ietf.org/html/rfc4559#page-3

Bug: 435866
Change-Id: I6173aff9352d7def225cafe2d73e5176ad40dff0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java