title: Passing User Info to MVC Controller
body: <p>I am looking at various methods to implement Authentication in my MVC3 app. I would like to use my own code to do the authentication – something similar to <a href="https://stackoverflow.com/questions/1438151/is-it-possible-to-create-a-logon-system-with-asp-net-mvc-but-not-use-the-members">Is it possible to create a Logon System with ASP.NET MVC but not use the MembershipProvider?</a> <em>(I know that there are other methods.)</em> I would like to know once I authenticate a user using one of these methods, how do I get the user information to the Controller constructor. <em>(By user information I mean username or userID).</em> </p>
  
  <p>One of the options I considered is putting that info into the <code>Session</code>. This works, but it is difficult to test since I get the <code>Session</code> out of the <code>Context</code> which does not exist during the test. </p>
  
  <p>I would appreciate any ideas for how to pass user info to the controller constructor. </p>