It may seem that this is a very "holivarny" question, but I still ask it.
I started writing my system back when I was in the ASP.NET Membership mode. Well, of course, I was far from having enough flexibility and I decided to write my own authorization system, not relying on any principles of authorization / authentication systems developed at that time. What about the system now resembles:
- A separate context (you never know what happens in life);
- CodeFirst - implementation;
- Storing session token in cookies and comparing it with a token in a separate table in the database.
- Authorization filters of the type (
[IdentityFilter("admin", "user", "manager")]) and type ([IdentityFilter(RolesEnum.Manager)]). To choose;) - Repository
- Authorization information is obtained in the filter and then walks into HttpContext`e.
- Well, many other little things.
So, how would it work quickly, but something tells me that it can be even faster.
Actually I wanted to find out what advantages Identity can carry for me and whether it is advisable to use it in “real production”, or is it an interface for beginners and for those who do not want to be soared.
After all, in my code for me there are no restrictions, but in Identity there are still restrictions, at least the same naming of tables and fields by default.
PS I ask you a very detailed , and all the more reasoned answer. Thank you in advance!