如何在 Eclipse RCP 中为外部浏览器提供身份验证?

How to provide Authentication for external browser in Eclipse RCP?

PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser()
                .openURL(resourceURL);

这是通过 URL 通过 Eclipse 插件打开外部浏览器,但我需要为此 URL 提供基本身份验证。

使用浏览器 class 我可以使用 addAuthenticationListener() 向通过的浏览器提供身份验证,但我无法弄清楚如何为外部浏览器提供身份验证。

使用 Runtime.getRuntime().exec(....) 在新进程中打开外部浏览器,因此您将无法在代码中添加任何内容来进行身份验证。