What is Role-based security? - C#.NET

What is Role-based security?

Application that provide access to its data based on credentials check, verify the user’s role and hands over the access on the basis of such roles. Managed code finds out the role of a principal through a Principal object. This further contains a reference to an Identity object.

User accounts -> represent people

Group accounts -> represent certain categories of users and the rights they own.

In .NET Framework:- Identity objects represent users, Roles represent memberships and security.

A security principal represents a user and their roles which tells about their authority in the application. Role-based security is mostly used in custom authentication.

Way to set the default policy to the application is:
AppDomain appDomain = AppDomain.CreateDomain("test");
appDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
Steps to deploy an XML web service - C#.NET
Explain steps to deploy an XML web service - To deploy the XML Web service, once can add a Web Setup project using project templates...
Steps to secure an XML web service - C#.NET
Steps to secure an XML web service - a) Secure the transport layer...
How to access unmanaged code using Interop - C#.NET
Demonstrate how to access unmanaged code using Interop - Use System.Runtime.InteropServices...
Post your comment