public void CheckUser(Object sender, WebServiceAuthenticationEvent e) { if (ValideUser(e.User, e.Password)) { return; } else { WebServiceAuthenticationModule module = sender as WebServiceAuthenticationModule; //return "Invalid user."; } }
private void OnAuthenticate(WebServiceAuthenticationEvent e) { if (_eventHandler == null) { return; } _eventHandler(this, e); if (e.User != null) { e.Context.User = e.Principal; } }