title: ASP.Net MVC Custom Authentication
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1438151/is-it-possible-to-create-a-logon-system-with-asp-net-mvc-but-not-use-the-membersh">Is it possible to create a Logon System with ASP.NET MVC but not use the MembershipProvider?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm looking to create a custom authentication model for my MVC app but I'm not sure where to implement my custom IPrincipal and IIdentity classes. I don't want to do this in the Global.asax on every request as not all the pages in the site will need authentication. So my question is where? Should I be doing this in my custom action filters for the actions that require the user to be logged in?</p>
  
  <p>I don't wish to use the Membership Provider or Forms Authentication this needs to be completely custom and separated.</p>