MVC user login system

Soldato
Joined
27 Mar 2003
Posts
2,710
So have been getting to grips with MVC and am at the point where I need to implement a login system with user roles ie admin, user, guest etc. What would be an easy way to do this?

1) User simple membership provider
2) Implement a custom membership provider
3) Brock Allen's identitymodel
4) Something else.

Thanks in advance for any help.
 
Associate
Joined
22 Apr 2011
Posts
1,176
If you create a new MVC application in Visual Studio, it already comes with an example login system. You can then just extend that, by adding Roles etc. I normally just write a temporary controller to add the roles initially.

So, I'd just go with 1 for now, and if you find you need more functionality, go with 2
 
Soldato
OP
Joined
27 Mar 2003
Posts
2,710
In the end I went with Brock Allen's MembershipReboot (took a bit of time to implement but seems really good fits the MVC pattern nicely and although I don't really understand how it is all working at the moment the system seems fairly powerful and secure.)
 
Back
Top Bottom