public void Authenticate(CustomSoapHttpClientProtocol client) { ProxyAuthenticator.SecurityTracer.TraceDebug <object, AuthenticatorType>((long)this.GetHashCode(), "{0}: Authenticating client with {1}", TraceContext.Get(), this.AuthenticatorType); client.Authenticator = this.authenticator; if (this.AuthenticatorType == AuthenticatorType.WSSecurity) { client.Url = EwsWsSecurityUrl.Fix(client.Url); client.ConnectionGroupName = "WS>"; return; } client.Url = EwsWsSecurityUrl.FixForAnonymous(client.Url); client.UnsafeAuthenticatedConnectionSharing = Configuration.UnsafeAuthenticatedConnectionSharing.Value; client.ConnectionGroupName = "NC>"; }
public void Authenticate(CustomSoapHttpClientProtocol client) { if (this.ProxyAuthenticator == null) { if (this.CredentialCache != null) { this.ProxyAuthenticator = ProxyAuthenticator.Create(this.CredentialCache, null, null); } else { this.ProxyAuthenticator = ProxyAuthenticator.Create(this.Credentials, null, null); } } this.ProxyAuthenticator.Authenticate(client); }