示例#1
0
 /// <remarks/>
 public void AuthenticateAsync(Authenticate Authenticate1, object userState) {
     if ((this.AuthenticateOperationCompleted == null)) {
         this.AuthenticateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAuthenticateOperationCompleted);
     }
     this.InvokeAsync("Authenticate", new object[] {
                 Authenticate1}, this.AuthenticateOperationCompleted, userState);
 }
示例#2
0
 /// <summary>
 /// Calls Exchange Network authenticate method
 /// </summary>
 /// <returns>Security token if valid or empty string if failed</returns>
 internal static string AuthHelper(string userID, string credential, string authMethod, string domain, string NodeURL)
 {
     NetworkNode2 nn = new NetworkNode2();
     nn.Url = NodeURL;
     Authenticate auth1 = new Authenticate();
     auth1.userId = userID;
     auth1.credential = credential;
     auth1.authenticationMethod = authMethod;
     auth1.domain = domain;
     try
     {
         AuthenticateResponse resp = nn.Authenticate(auth1);
         return resp.securityToken;
     }
     catch (SoapException sExept)
     {
         db_Ref.InsertT_OE_SYS_LOG("ERROR", sExept.Message.SubStringPlus(0, 1999));   //logging an authentication failure
         return "";
     }
 }
示例#3
0
 /// <remarks/>
 public void AuthenticateAsync(Authenticate Authenticate1) {
     this.AuthenticateAsync(Authenticate1, null);
 }