title: How to obtain basic authentication username/password in Controller for .NET Web API 2.0
body: <p>I've read through the documents on how to create a Basic Authentication filter for the Web API 2.0, and it doesn't seem too bad. However..</p>
  
  <p>The issue I have is that I also need the username and password information within the Controller itself (on a POST / PUT / DELETE) to be able to pass through to a 3rd party .NET API for authentication/authorization of an action taken by the Controller.</p>
  
  <p>Is there a 'proper way' to do this?</p>
  
  <p>I can see that the RequestContext (in the Controller) includes info on the Principal.  But this only seems to go so far as the Name... so it doesn't have the password that I'd need to pass through to the 3rd party interface.</p>