I am new in Mvc and I am struggling for last 4 days to find any good tutorial for custom authorization and authentication in asp.net MVC 3.
Problem is:-
We are having our own custom User Master table and also Custom Role Master Table.
Now I want to know How can we authenticate a particular User from Login Page with our Existing Custom User table and also assign rights i:e Role ID from Role master for that Logged In User with out Using Membership Stuff.
The Second thing I want when a User make any request for a Controller, I want to check whether the User's Session is Null or not and also want to check that the Role ID that Logged In User have , whether that Role ID have rights to access that Controller or not.
And also want to implement Role based Access Control . For ex:-
Role 1 can Edit Account of Role 2 and Role 3
Role 2 can Edit Account of Role 3 only .(Restricted to edit Role 1 Account)
One solution for that is to make different View and Controller but I don't that is the better Solution.
Please suggest!!!!
Thanks in Advance!!!!