I'm building a new MVC application. Normally I always have a project structure that looks like this:
- DAL layer (entities and repositories
- Service layer (business oriented service calls that coordinate between the api/Frontend and the DAL)
- Frontend, this can be web API or MVC application.
My problem is that I always end up with a messy implementation for user management. I used the Membership providers and thus made that part not as nice as it should. Now I saw the new Identity implementation and I really liked it. I did some searches about hot to abstract it to the backend, but with no result.
I found this post about structuring the project but it gave no real answer: Decoupling ASP.NET MVC 5 Identity to allow implementing a layered application
I was hoping someone could provide me with some hints or a technical document how abstract all login and authentication to the backend layer.