How to create a login with different levels of permission?

2

How to create a login with different levels of permission? Is it necessary to create a table in the database to log in? I have read about formsauthentication, cookies and etc, but I still do not quite understand it.

    
asked by anonymous 22.09.2014 / 01:02

1 answer

2

I'll explain two: ASP.NET Membership and ASP.NET Identity .

ASP.NET Membership

It is a standard data architecture designed to handle the users of an application. In this case it is assumed that your application will have its own user base, and some other system logins from other sites can be integrated. It can work with Forms Authentication, which is another standard of Microsoft, much simpler, but aimed at the process of authenticating the user itself.

There is a (very) simple implementation of logins and passwords called Simple Membership where you do not need to write code. Here's a tutorial on how to do .

If you want to implement something more custom, you have some answers from me that I teach in detail how to do it:

ASP.NET Identity

As Membership is limited to working with new authentication and permission methods, Identity has been created, which basically brings news such as working with Claims and more sophisticated methods of identifying users.

Some of my answers:

22.09.2014 / 03:16