Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Is it possible to implement Membership and role provider in Asp.net MVC 4 application..Please read the below requriement and suggest me some ideas

$
0
0

Hi All,

We have the below requriement and we are told to do that in MVC 4

The requirement is

We have some roles like

  1. Administrator
  2. SrManager
  3. Manager
  4. TeamLead
  5. Associate

When the User belongs to the Administrator role logins to the application then the application should have following Views as menu item should shown in the left side of the application. Simillary for other users of the corresponding role.

RolesViews
AdministratorAdminView1
AdminView2
AdminView3
AdminView4
AdminView5
SrManagerSrManagerView1
SrManagerView2
SrManagerView3
SrManagerView4
ManagerManagerView1
ManagerView2
ManagerView3
ManagerView4
TeamLeadTeamLeadView1
TeamLeadView2
AssociateAssociateView1
AssociateView2
AssociateView3
AssociateView4

Suppose when the user belongs to the role SrManager wants to delegate the view SrManagerView3 toManager so that in SrManager absense the Manager can use that view to do the work of the SrManager role ...How can we achive the above in ASP.NET MVC4. Will the ASP.NET MVC 4 support Membership and Role provider? If it supports Membership and RoleProvider how can we achieve this ? If not what is the other way we can do this in ASP.NET MVC 4?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>