Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the best practice for user privilege management or role management with out using membership functionality in asp.net?

user-image
Question added by Ilyas Mohammed , Dynamics ERP developer Head , Saudi Fisheries Company
Date Posted: 2016/02/14

A better way to handle role permissions in ASP.NET Identity. ASP.NET Identity is integrated with an ASP.NET project it creates a few database tables where relevant user data can be stored.

AspNetUsers – the table where application users are stored AspNetRoles – this is where we store application roles (you can also think of them as groups) AspNetUserRoles – a mapping table where we store information about what users belong to what roles.

 

So far, so good. What we get out of the box is a way to create users, create some roles and assign users to roles. This follows the best-practice where we want to eventually assign application permissions to roles instead of individual users.

Mohammad Abu Humaidan
by Mohammad Abu Humaidan , Senior .Net Developer , THIQAH Business Services

manually by using groups and all actions should be has a roles and mapping with it 

murat osmantevfik
by murat osmantevfik , Software Engineer , Independent Electoral Commission

Role management enables you to manage authorization for your application with categories you create, referred to as "roles." By assigning users to roles, you can control access to different parts or features of your Web application based on a role instead of, or in addition to, a user name. For example, an employee application might have roles such as Managers, Employees, Directors, and so on, where different privileges are specified for each role.

Ayman ElKhateeb
by Ayman ElKhateeb , K2 & RPA developer , Emdad alkhebrat

1- define your permissions

2- create group of permissions according to your business

3- assign users to suitable group

Rameez Ahmed Sayad
by Rameez Ahmed Sayad , .Net Consultant , Proximus Luxembourg

Use HttpModule to validate each request , you can store user context in Memory Cache (helpful for working across all web applications in the same host). Create the user context in database ,use hashing for password . Should be good to go.

Safayet Hossain
by Safayet Hossain , Chief .Net Programmer , Chief ERP Solutions

You may use System.Web.Security.FormsAuthentication systems. 

shahanas Amin
by shahanas Amin , Faculty , NSS Higher Secondary School

we can provide permissions for individuals in application

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.