Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Ilyas Mohammed , Dynamics ERP developer Head , Saudi Fisheries Company
Date de publication: 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
par 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
par 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
par 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
par 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
par Safayet Hossain , Chief .Net Programmer , Chief ERP Solutions

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

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

we can provide permissions for individuals in application

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?