title: How to use ASP.net Core 1 "SignInManager" without EntityFramework
body: <p>I'm looking to implement ASP.net authentication via the SignInManager but without the EntityFramework.  I have built my own database layer using SQLClient and want to just create whatever calls is needed in order to make ASP.net authentication work.</p>
  
  <p>The code I have is as follows (executed from the Startup.cs):</p>
  
  <pre><code>// Add EF services to the services container.
  services.AddEntityFramework()
      .AddSqlServer()
      .AddDbContext&lt;OAuthAppDbContext&gt;(opt =&gt; opt.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"]));
  
  // Add Identity services to the services container.
  services.AddIdentity&lt;ApplicationUser, ApplicationRole&gt;(options =&gt;
  {
      options.Cookies.ApplicationCookieAuthenticationScheme = "ApplicationCookie";
      options.Cookies.ApplicationCookie.AuthenticationScheme = "ApplicationCookie";
      options.Cookies.ApplicationCookie.CookieName = "oAuthInterop";
      options.Cookies.ApplicationCookie.AutomaticChallenge = true;
      options.Cookies.ApplicationCookie.AutomaticAuthenticate = true;
      options.Cookies.ApplicationCookie.DataProtectionProvider = new DataProtectionProvider(new DirectoryInfo("d:\\development\\artefacts"),
          configure =&gt;
          {
              configure.SetApplicationName("TestAuthApp");
              //configure.ProtectKeysWithCertificate("thumbprint");
          });
  })
      .AddEntityFrameworkStores&lt;OAuthAppDbContext, int&gt;()
      .AddDefaultTokenProviders();
  </code></pre>
  
  <p>and I need to remove the Entity Framework reliance (and call my own db methods for gathering user details).  Has anyone else done something similar in ASP.net core?</p>
  
  <p>Thanks in advance for any pointers! :-)</p>