Multiple login entities and Multiple level access permission in ASP.NET MVC-5

asp.net asp.net-mvc asp.net-mvc-5.2 c# entity-framework-6

Question

I'm building a system where have 4 level login, there is 4 Entities involved.

  1. System owner
  2. Distributor
  3. Agent
  4. Subagent

System owner can create distributor login, distributor create agent login and agent create subagent login.

I have created 4 projects, each has their own login identity. But the problem is I cannot create Distributor login details from System Owner project. Do I need to merge all projects into 1? If yes, how can i separate these login for each entity?

any help will be greatly appreciated

1
0
11/11/2015 3:49:04 AM

Popular Answer

You don't need to create four separate projects for each user. You can make this with in a single project.

You can manage pages and functionalities for each user type using Microsoft ASP.Net Identity 2.

I can explain the basic idea to do this.

Step 1

Create four Roles for each user.

Step 2

Create a same login page for all users.

Step 3

When a user login, identify his/ her role in our system.

Step 4

Redirect to home page based on logged in user's role.

Step 5

Dynamically generate menu for each user.

Step 6

Authenticate each functionality based on logged in user's roles.

That's it !!!

1
11/11/2015 6:19:51 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow