proxy - Bypassing HTTP basic auth locally -
i have 2 applications cannot change:
a: provides url protected http basic auth. b: needs access url not support basic auth. credentials available.
how can make 2 applications work together?
i thought local proxy might great injects authentication. e.g. using socat:
socat tcp4-listen:81,reuseaddr,fork tcp:urltoa:80,<inject-basic-auth>=user:pass
however, socat not provide option < inject-basic-auth >. knows tool might help? other way out?
you must set http reverse proxy server authentication you. no need hack software.
your reverse proxy listens on socket (e.g. proxy:8080) , forwards requests actual application a, inserting headers.
client_b ----> http://proxy:8080 -----> http://server_a:80
nginx lightweight, high performance , easy set up. , it's easy find docs online want. see example http://wiki.apache.org/couchdb/nginx_as_a_reverse_proxy
Comments
Post a Comment