title: Move identity to a class library ASP.Net Core
body: <p>I have developed a new project based on ASP.Net core.
  I have moved all my EF code (Models,mappings, DbContext) into a dedicated DAL class library in order to follow the Single responsibility principle of the SOLID rules.</p>
  
  <p>However, I need now to add authentication into my project and would need to add the following into my Startup.cs of my Web project as shown in different tutorials:</p>
  
  <pre><code>services.AddIdentity&lt;ApplicationUser, IdentityRole&gt;()
          .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;()
          .AddDefaultTokenProviders();
  </code></pre>
  
  <p>It would involve adding the Microsoft.AspNetCore.Identity.EntityFrameworkCore package and it seems to me that I start breaking the SRP rule by having this package included into my Web project.</p>
  
  <p>Would it possible to move all the identity code (Services, models) as an external class library as I did for the DAL.</p>