diff options
author | Christian Pontesegger <christian.pontesegger@web.de> | 2016-04-20 08:31:18 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2016-06-06 16:45:49 +0200 |
commit | ac3d3af632b2b98e1ae176e4cd484934d1f49e1d (patch) | |
tree | b1cb2859058b0d13aafd2423835b6af71bce05a8 /org.eclipse.jgit.test | |
parent | 534fcb14795ac8cb1107cda9be1de4f5e1f38ea1 (diff) | |
download | jgit-ac3d3af632b2b98e1ae176e4cd484934d1f49e1d.tar.gz jgit-ac3d3af632b2b98e1ae176e4cd484934d1f49e1d.zip |
http transport does not use authentication fallback
Git servers supporting HTTP transport can send multiple WWW-Authenticate
challenges [1] for different authentication schemes the server supports.
If authentication fails now retry all authentication types proposed by
the server.
[1] https://tools.ietf.org/html/rfc2617#page-3
Bug: 492057
Change-Id: I01d438a5896f9b1008bd6b751ad9c7cbf780af1a
Signed-off-by: Christian Pontesegger <christian.pontesegger@web.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpAuthTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpAuthTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpAuthTest.java index 5233013582..3dc022d386 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpAuthTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpAuthTest.java @@ -100,7 +100,7 @@ public class HttpAuthTest { } catch (IOException e) { fail("Couldn't instantiate AuthHeadersResponse: " + e.toString()); } - HttpAuthMethod authMethod = HttpAuthMethod.scanResponse(response); + HttpAuthMethod authMethod = HttpAuthMethod.scanResponse(response, null); if (!expectedAuthMethod.equals(getAuthMethodName(authMethod))) { fail("Wrong authentication method: expected " + expectedAuthMethod |