I use ASP.NET Identity 2.0
in an ASP.NET MVC5
project that is composed of three layers; Web application (presentation layer), Unit Test (test project) and Class library (data layer). Normally IdentityConfig.cs
is located in the App_Start
folder of Web application but as I implement a Group-Based Permissions Management as indicated on this page I want to keep all the domain models and IdentityConfig.cs
file to the Identity folder in data layer project instead of the web project (presentation layer). Because IdentityConfig.cs
needs to access DbContext
class that is placed in my data layer project. Is there any problem doing this? On the other hand, could you please explain a little bit what is the App_Start
folder?
Here is the ASP.NET Identity folder structure in my project below:
DataLayer (class library)
Concrete
EFDbContext
Entities (my entity classes except from ASP.NET Identity entities)
Identity
ApplicationGroupManager
ApplicationGroupStore
GroupStoreBase
IdentityConfig
IdentityModels
PresentationLayer (Web app)
App_Start
Controllers
AccountController
GroupsAdminController
ManageController
RolesAdminController
UsersAdminController