title: Obtain Network Credentials from Current User in Windows Authentication Application
body: <p>I was wondering whether it was possible to obtain the current user object and get their credentials so that I can pass them along to a <code>NetworkCredential</code> object which I am using to connect to my AX .NET Business Connector. As, at the moment I'm having to specify it connect as a specific user which I set when I instantiate a <code>NetworkCredential</code> object:</p>
  
  <p><code>private NetworkCredential nc = new NetworkCredential("myUser", "myPassword", "myDomain");</code></p>
  
  <p>I was hoping to do something like: <code>private NetworkCredential nc = (NetworkCredential)HttpContext.User;</code> but obviously that won't work...</p>
  
  <p>That way, it's easier to keep track of which user has created a sales order for example, as at the moment everything gets created by the user I have specified..</p>