-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: replace HttpConfigurable with adapter to support pre/post-2024.3 (#242) #240
base: main
Are you sure you want to change the base?
fix: replace HttpConfigurable with adapter to support pre/post-2024.3 (#242) #240
Conversation
dbc9a20
to
b541bbe
Compare
1ba34e8
to
46c784e
Compare
46c784e
to
db9f07f
Compare
434eeae
to
99aadd2
Compare
putting this on hold, waiting for #246 |
99aadd2
to
1fa4939
Compare
1fa4939
to
041bd3e
Compare
@sbouchet: Tested it in intellij-openshift-connector with |
041bd3e
to
f63c7b0
Compare
@sbouchet tested and corrected the patch to work with latest EAP ( The following (existing) code returns new IdeaWideAuthenticator(HttpConfigurable.getInstance()).getPasswordAuthentication() The following works on the other hand: HttpConfigurable.getInstance().getPromptedAuthentication(url, null) |
Turns out that the reason is as follows:
public final class IdeaWideAuthenticator extends NonStaticAuthenticator {
private static final Logger LOG = Logger.getInstance(IdeaWideAuthenticator.class);
private final HttpConfigurable myHttpConfigurable;
public IdeaWideAuthenticator(@NotNull HttpConfigurable configurable) {
myHttpConfigurable = configurable;
}
@Override
public synchronized PasswordAuthentication getPasswordAuthentication() {
final String host = CommonProxy.getHostNameReliably(getRequestingHost(), getRequestingSite(), getRequestingURL());
// java.base/java/net/SocksSocketImpl.java:176 : there is SOCKS proxy auth, but without RequestorType passing
final boolean isProxy = Authenticator.RequestorType.PROXY.equals(getRequestorType()) || "SOCKS authentication".equals(getRequestingPrompt());
// FIXME prefix for server auth is never used since 7ea74ea400b03cf92d1621ea0e8aa1d386cb886a.
// This means that this class manages strictly proxy authentication since 2013 I believe that this is a platform bug. The new API fixes this issue. |
f63c7b0
to
b19e91a
Compare
@sbouchet: please review ps. current EAP 2024.3 is
As a proxy you can use the internal squid that's available beind VPN. You'd have to set the proxy in the runtime IDE and restart it. |
b19e91a
to
9649d87
Compare
9649d87
to
5dfdbfa
Compare
Signed-off-by: Andre Dietisheim <[email protected]>
5dfdbfa
to
5b6e76b
Compare
Quality Gate passedIssues Measures |
fixes #242, #255
depends on