Getting User IP During Login Authorization

I’ve worked through the major issues I was asking about here:

viewtopic.php?f=74&t=12310

Now a much more specific question in this realm:

Is it possible to get the IP of a user during the login process?

I’m hoping specifically that I can access the IP when this method from AbstractUserSourceProfile is called:

public AuthenticatedUser authenticate(AuthChallenge authC) throws Exception

The AuthChallenge in the argument appears to only contain the username and password, so that is a dead end. Is there maybe a way to wring this information out of the GatewayContext?

There’s no way to associate the AuthChallenge in a call to authenticate() with an IP address - this call can from anyone/anywhere in the system that have access to the auth profiles and want to validate a user against them.

It’s neither required nor implied that this is coming from a remote client or any context that might have an IP address associated with it.

Where it IS possible to get an associated user and IP address is while handling RPC calls to your module in a handler you’ve installed.