ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Ilyas Mohammed , Dynamics ERP developer Head , Saudi Fisheries Company
تاريخ النشر: 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
من قبل 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
من قبل 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
من قبل 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
من قبل 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
من قبل Safayet Hossain , Chief .Net Programmer , Chief ERP Solutions

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

shahanas Amin
من قبل shahanas Amin , Faculty , NSS Higher Secondary School

we can provide permissions for individuals in application

المزيد من الأسئلة المماثلة