Esempio n. 1
0
 public void CheckUser(Object sender, WebServiceAuthenticationEvent e)
 {
     if (ValideUser(e.User, e.Password))
     {
         return;
     }
     else
     {
         WebServiceAuthenticationModule module = sender as WebServiceAuthenticationModule;
         //return "Invalid user.";
     }
 }
Esempio n. 2
0
        private void OnAuthenticate(WebServiceAuthenticationEvent e)
        {
            if (_eventHandler == null)
            {
                return;
            }

            _eventHandler(this, e);
            if (e.User != null)
            {
                e.Context.User = e.Principal;
            }
        }