I'm using the SwingInterop sample in the javafx-samples-2.0.2 package in my company's intranet. Upon selecting the Web Browser tab, I can open internal websites just fine, but any external website fails to load. I tweaked the SwingInterop example in NetBeans 7.1 by using Authenticator.setDefault() and ProxySelector.setDefault(), so my proxy server and authentication credentials would get used. If I try to open an external website using, say new URL("http://www.oracle.com").openStream(), my Authenticator gets invoked and I can read the resulting input stream just fine. However, if I try to open the same URL in the Web Browser tab, my Authenticator won't get called and I'll receive the following error message in WebView:
==========
Access Denied (authentication_failed)
Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
For assistance, contact your network support team.
==========
==========
Access Denied (authentication_failed)
Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
For assistance, contact your network support team.
==========
- relates to
-
JDK-8090490 WebView may want to provide finer grained control over HTTP authentication
-
- Open
-