public void Login()
 {
     var auth = new AuthenticationHelper(this.settings.SiteUrl, null, this.settings.UseWindowsAuth, this.settings.Username, this.settings.Password, this.settings.Domain);
     this.accessToken = auth.Authenticate();
 }
 public void Init(string siteUrl, string refreshToken, string username, string password)
 {
     this.siteUrl = siteUrl;
     var auth = new AuthenticationHelper(siteUrl, refreshToken, username, password);
     this.accessToken = auth.Authenticate();
 }