How to catch users IP Address in UsernameTokenManager
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:

