How do I manage membership in my ASP.NET MVC 4 application?

As I am building my first ASP.NET MVC 4 Internet application, I’m wondering what is the best way to manage site membership. The application allows users to register and log in. I am interested to learn how to implement a complete solution for managing site membership, including the administrative user interface.

How do I add the addition of membership administration features to the application? First of all, I am considering two different NuGet packages for my solution: SecurityGuard.MVC4 and MvcMembership . Both look like a good starting point for adding membership administration to my application, but it's hard for me to choose, since I know so little about it.

+6
source share
1 answer

I believe that a guard is what you would like to go with. This gives you a much more complete membership area. I didn’t use myself, but I made my own and browsing the links that you provided, Security Guard is your best choice for creating an admin backend.

However, if you just need to authorize different sections, check user roles, and possibly unlock a user, you can probably get it with the built-in User and Mebership and Role . You would need to create some views and what not, but it is not very difficult and a good study.

+3
source

Source: https://habr.com/ru/post/922116/


All Articles