public Authorization Authenticate(string challenge, WebRequest webRequest, ICredentials credentials)
        {
            if (credentials == null || challenge == null)
            {
                return(null);
            }
            string text = challenge.Trim();

            if (text.ToLower().IndexOf("basic") == -1)
            {
                return(null);
            }
            return(BasicClient.InternalAuthenticate(webRequest, credentials));
        }
 public Authorization PreAuthenticate(WebRequest webRequest, ICredentials credentials)
 {
     return(BasicClient.InternalAuthenticate(webRequest, credentials));
 }