Getting IP from within Tomcat RealmBase.authenticate method – Apache Web Server

  apache

Q(Question):

Hi

I am using Tocat realm for authentication in my application.
Basically I am calling the authenticate(string, string) method passing it the username and password.
After performing the authentication I need to post an audit message with the authentication result. The audit message MUST contain the client IP.
Does anyone know how can I get the client IP inside the authenticate method?

Thanks,

BOW

A(Answer):

LEAVE A COMMENT