Getting Hostname IDP is running on
Cantor, Scott
cantor.2 at osu.edu
Fri Aug 9 13:57:34 EDT 2019
On 8/9/19, 1:42 PM, "users on behalf of Christopher Bland" <users-bounces at shibboleth.net on behalf of chris at fdu.edu> wrote:
> I am not a Java programmer, I have been digging into possible solutions and I think I need to access the
> java.net.InetAddress class so I can call getLocalHost() and/or getHostName().
No, you need to fix your web server to properly provide the values in the places you already looked, that's part of basic setup.
Proxying layer 7 is strongly ill-advised, and I wouldn't do it, but if you choose to do it, that's just the cost of doing business. You need to use the Forwarded-For headers, apply appropriare protections at the load balancer to prevent smuggling, and the deploy the necessary features on the Java container to pick them up.
-- Scott
More information about the users
mailing list