Closed AlBundy33 closed 4 months ago
Seems to be my problem because I've used Basic Authentication which is disabled by default https://www.oracle.com/java/technologies/javase/8u111-relnotes.html
To enable Basic Authentication run
SET _JAVA_OPTIONS=-Djdk.http.auth.tunneling.disabledSchemes=
javaws /path/to/app.jnlp
or edit lib/net.properties in your jre-folder and change the line
jdk.http.auth.tunneling.disabledSchemes=Basic
to
#jdk.http.auth.tunneling.disabledSchemes=Basic
or instead of using Basic Auth use Digest Auth. with the following config there is no need to re-enable basic-auth in java. :-)
services:
proxy:
image: ubuntu/squid
ports:
- "3128:3128"
environment:
- TZ=Europe/Berlin
configs:
- source: squid_config
target: /etc/squid/squid.conf
- source: squid_passwords
target: /etc/squid/passwords
http:
profiles:
- pac
image: python:3-alpine
working_dir: "/tmp"
configs:
- source: proxy_pac
target: /tmp/proxy.pac
entrypoint:
- "python3"
- "-m"
- "http.server"
ports:
- "8889:8000"
configs:
squid_config:
content: |
http_port 3128
debug_options ALL,1
auth_param digest program /usr/lib/squid/digest_file_auth -c /etc/squid/passwords
auth_param digest children 5
auth_param digest realm squid
# https://wiki.squid-cache.org/ConfigExamples/Authenticate/Bypass
acl http proto http
acl port_80 port 80
acl port_443 port 443
acl CONNECT method CONNECT
acl authenticated_users proxy_auth REQUIRED
# rules allowing authenticated users
http_access allow http port_80 authenticated_users
http_access allow CONNECT port_443 authenticated_users
# catch-all rule
http_access deny all
# proxy:proxy
# htdigest -c pw squid proxy
squid_passwords:
content: |
proxy:squid:c66b0b69eb1e39cbac38bc4d7f013d7b
# change server-name
proxy_pac:
content: |
function FindProxyForURL(url, host) {
return "PROXY localhost:3128";
}
Is there some issue with proxy authentication?
I've tried to setup a local proxy with enabled authentication (see docker-compose.yml)
If I now start a test-app from https://docs.oracle.com/javase/tutorial/uiswing/examples/misc/ I have to login once and after that I get an exception
docker-compose.yml