title: asp.net 5, indentity 3 and modular projects
body: <p>I'm trying to create the modular project on the asp.net 5 (vnext) on dnxcore50. I have the problems with the new Identity 3 (or either with replacing it with the custom security classes).</p>
  
  <p>My project contains Models subproject, DataAccess subproject and DataAccess.EntityFramework subproject. DataAccess contains only interfaces (for example, repositories to work with entities). DataAccess.EntityFramework contains Entity Framework implementation of DataAccess. (I don't want to have close ties with the EF, only via interfaces.) Everything is good, it works.</p>
  
  <p>But now I need to add User entity. If I want to use Identity, I need to make User class derived from IdentityUser[int]. But IdentityUser class is located in Microsoft.AspNet.Identity.EntityFramework! How the model class can be located in the ORM-specific namespace?</p>
  
  <p>So because of this I want to replace the Identity with my custom security solution, but now User property of the controller is ClaimsPrincipal and it looks more complicated to replace it than it was with IPrincipal.</p>
  
  <p>The only way I can see now is to create another one property User in the base controller and write everything by hands, but it is not what I want to do.</p>
  
  <p>So I need some advise how can I solve all of this.</p>
  
  <p>Thanks!</p>