Chapter 56. How to Implement Role-Based Security for an Enterprise Services Application

If you're writing a ServicedComponent and you want to secure it, there are several attributes in System.EnterpriseServices that you need to use. Let me walk you through a concrete example. Figure 56.1 shows a simple component that implements role-based security.

First of all, notice that the assembly has been given a public key: All managed COM+ components must be strongly named. Next, notice that I've given my application a name via ApplicationNameAttribute. I've also chosen a server app (as opposed to a library app) via ApplicationActivationAttribute. This will ensure that my application gets its own process.

The next attribute, ApplicationAccessControlAttribute ...

Get The .NET Developer's Guide to Windows Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.