Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to catch users IP Address in UsernameTokenManager

I use custom UsernameTokenManager with WSE 2.0
Here is the class:

public class AuthenticationManager : UsernameTokenManager
{
protected override string AuthenticateToken( UsernameToken token )
{
string username = token.Username;

// Check in DB for password
string pass = GetUserPass(username);

if (pass == "")
{
//catch the user's IP and log it
return "";
}

return pass;
}
}


How to catch the ip address? :confused:
[548 byte] By [brayan__] at [2007-11-11 6:39:12]