title: SharePoint : how to authenticate from c#
body: <p>I have the following code snippet:</p>
  
  <pre><code>using (SPSite site = new SPSite(this.ListAddress))
          {
              using (SPWeb web = site.OpenWeb())
              {
  
              }
  
          }
  </code></pre>
  
  <p>How can I authenticate so that I can set a domain username + password in a configuration file.</p>