I am trying to integrate the recently released ASP.NET Identity 2.0.0 into a three-layer MVC application. I'm not sure I will go in the right direction. I see two approaches.
In the first approach, I went with integrating Identity into each logical level. Having some technical problems integrating but still developing.
In the second approach, go to a standalone encapsulated assembly designed to provide security.
At the moment I went with approach 1, but I asked all this. Also, any other approaches?
Approach 1
Web
Startup.cs
/App_Start/Startup.Auth
/Controllers/Account
/Controllers/Manage
/Controllers/RolesAdmin
/Controllers/UserAdmin
/ViewModels
/Views
Business Logic
/Service/AccountService
/Service/ApplicationRoleManager
/Service/ApplicationUserManager
/Service/EmailService
/Service/SmsService
/Service/SignInHelper
Data
ApplicationDbContext
ApplicationUser
, Identity , , .
-, , "" , .
: , Web/App_Start/Startup.Auth Busness Logic
app.CreatePerOwinContext(ApplicationDbContext.Create);
. . ( , , ).
2
, , .. Identity 2.0.0 . . , . . ( ) , . .