-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpclient5 lacks kerberos support #73
Comments
@christophvw thanks for opening this issue. Not sure if you were aware, but Eclipse is in the process of moving to the JRE-provided impl of httpclient as per eclipse-platform/eclipse.platform.releng.aggregator#1389 (comment) rather than using httpclient5. Have you checked whether the javahttpclient provider has this capability? |
@laeubi please take a look at this as it likely means further changes to javahttpclient |
@scottslewis do you think we should add a
to javahttpclient as well ;-) In general this describes how to do kerberos auth in java http subsystem: Main problem is that I don not have any kerberos proxy ... so the very first thing I think would be to have some kind of testcase so one can work on it. |
I think it would be more direct to just state that you are not able to do it yourself and so a contribution is likely required (or some other support path is required). |
I once implemented kerberos auth and there are some impls out there but right now I have no kerberos infrastructure to use :-\ |
Hmm...well, that sounds familiar (not having means to test proxy environments in ECF). I hope that someone recognizes the history here and does something more than to point at the community (which is doing quite a lot already IMHO). |
It appears that @laeubi isn't going to address this deficiency in the current (java jre-based) httpclient provider. Until someone shows up to do the necessary work, closing. |
@laeubi using Kerberos on Windows with Java 11 is much easier: -Dsun.security.jgss.native=true done. https://docs.oracle.com/en/java/javase/11/security/accessing-native-gss-api.html |
hmm - does this mean this is only supported by HttpURLConnection and not by HttpClient? |
@christophvw as mentioned the main problem is that I have no kerberos infrastructure otherwise one could simply test if it works OOTB... |
It does not work out of the box I just downloaded Eclipse 2024-03 - and edited the eclipse.ini changed: added: org.eclipse.equinox.p2.core.ProvisionException: HTTP Proxy Authentication Required: https://google.de/content.xml |
I did a quick test: I used the following JRE options:
-> Works with Kerberos out of the box
-> does not |
httpclient5 lacks kerberos support for proxy authentication:
https://github.com/eclipse/ecf/blob/master/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient5/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient5/HttpClientProxyCredentialProvider.java
} else if ("negotiate".equalsIgnoreCase(authscope.getSchemeName())) {
Trace.trace(Activator.PLUGIN_ID, "SPNEGO is not supported, if you can contribute support, please do so.");
This becomes more important as Microsoft plans to remove NTLM support in future Windows 11 builds.
https://techcommunity.microsoft.com/t5/windows-it-pro-blog/the-evolution-of-windows-authentication/ba-p/3926848
https://bugs.eclipse.org/bugs/show_bug.cgi?id=561175
The text was updated successfully, but these errors were encountered: