title: How to customize authentication to my own set of tables in asp.net web api 2?
body: <p>In the default AccountController created I see</p>
  
  <pre><code>    public AccountController()
          : this(Startup.UserManagerFactory(), Startup.OAuthOptions.AccessTokenFormat)
      {
      }
  </code></pre>
  
  <p>In Startup.Auth.cs I see</p>
  
  <pre><code>    UserManagerFactory = () =&gt; 
                  new UserManager&lt;IdentityUser&gt;(new UserStore&lt;IdentityUser&gt;());   
  </code></pre>
  
  <p>Seems like the implementation of <strong>UserStore</strong> comes from <strong>Microsoft.AspNet.Identity.EntityFramework</strong>. </p>
  
  <p>So, to customize the authentication do I have to implement my own version of UserStore like </p>
  
  <pre><code> class MYSTUFFUserStore&lt;IdentityUser&gt; : UserStore&lt;IdentityUser&gt;
   {
   } 
  </code></pre>
  
  <p>and override the methods and then do this in Startup.Auth.cs</p>
  
  <pre><code>UserManagerFactory = () =&gt; 
                 new UserManager&lt;IdentityUser&gt;(new MYSTUFFUserStore&lt;IdentityUser&gt;());   
  </code></pre>
  
  <p>I am looking for a correct way to customize the authentication.</p>