title: Asp.Net Core - simplest possible forms authentication
body: <p>I have this old MVC5 application that uses forms authentication in the simplest possible form. There is only one account stored in web.config, there are no roles etc.</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Login/Index" timeout="30"&gt;
      &lt;credentials passwordFormat="Clear"&gt;
        &lt;user name="some-user" password="some-password" /&gt;
      &lt;/credentials&gt;
    &lt;/forms&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>The login routine just calls</p>
  
  <pre><code>FormsAuthentication.Authenticate(name, password);
  </code></pre>
  
  <p>And that's it.
  Is there something similar (in terms of simplicity) in asp.net core?</p>