Eclipse plugin not using proxy (407 authentication required) [message #1862292] |
Wed, 22 November 2023 15:54 |
Dan Moldoveanu Messages: 4 Registered: May 2023 |
Junior Member |
|
|
Hello,
I am developing an eclipse plugin and recently I found a bug which is getting painful since I'm not finding a proper solution - my eclipse plugin is made so that it has to get some information from an site from external web. The problem is that when using proxy (with username and password - and ONLY when authentication is required), my plugin is not taking into consideration the user and the pass for the proxy and I get 407 Authentication Required as a response to each HttpRequest executed (for e.g. a corporate proxy that has to be added in order to get to the external web)
If for example I'm trying to use a proxy without user and password, everything is working fine.
I tested to see if the connection is getting through the proxy and it is (of course without the user and pass). I noticed the calls in the logs of the proxy server.
My question is - does anyone encounter this before? Do I have to somehow pass the host, port, user, pass to the HttpClient from the IDE? If not, why does it work without authentication and not working with it?
Some additional info would be that the connectivity to that specific website is made through a service layer that is imported as a maven depedency in the project (also written by me). The funny part is that I use the exact same service layer for the Eclipse plugin, but also for an Intellij plugin and in the Intellij one, everything is working properly and I don't get the 407 Authentication Required. (the calls are made exactly the same because they both use the same service layer).
Any ideas would be very helpful!
Thanks alot! :)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds