Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to implement a precise access control mechanism for a mvc project .

I know there are roles but keeping track of roles as it grows larger is also not feasible .

I want to give each user a separate viewing permission depending on the logic the view will be generated and show to the user.


Is there a mechanism inbuilt in.net ..?

Can someone just gimme a headstart on this?
Posted

You have an inbuilt RBAC mechanism as well as it can be customized too.

The authorization mechanism can use Role and Membership providers which is inbuilt.

Refer

http://logcorner.wordpress.com/2013/08/29/how-to-configure-custom-membership-and-role-provider-using-asp-net-mvc4/[^]

http://techbrij.com/custom-roleprovider-authorization-asp-net-mvc[^]

Custom Membership Providers[^]

Hope this helps you...
 
Share this answer
 
Comments
gaurish thakkar 30-Jan-14 0:00am    
Thanks :)
JoCodes 30-Jan-14 0:46am    
You are welcome Gaurish :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900