Capture IdP hostname and user IP in velocity templates
Ryan Suarez
ryan.suarez at sheridancollege.ca
Fri Nov 27 14:55:41 UTC 2020
> Do you mean display? Is this the same as the LocalName [1] for the
> httprequest [2]
Ah, not sure why but LocalName returns the IP of the server. Good
enough for my diagnostic purpose regardless. This worked for me:
#set ($server = $request.getLocalName())
#set ($clientIP = $request.getRemoteAddr())
Thanks for the pointers.
-Ryan
More information about the users
mailing list