title: .NET MVC 6 Simple Authentication without database
body: <p>I've created a simple website in ASP.NET 5 MVC 6.</p>
  
  <p>I have 1 controller with 1 index-method and view.</p>
  
  <p>I need authentication on this with <code>[Authorize]</code></p>
  
  <p>I have a login-form on a view with an input taking a number. Users can log in if they can answer the right number to a calculation.. I need to check the answer in C#-code.</p>
  
  <p>So basically i want a AuthenticationController with a Login(int answer) where i can check the result and redirect to the index-page. If they try to acces the index-page not logged in, they must be redirected to the login page :)</p>
  
  <p>Possible in a simple way?</p>