Making Permission Requests

Chapter 25 showed how to use permission requests in the “Using Declarative Security” section. So, this section will only cover when to use permission requests instead of the technical details of how to do it.

Ideally, you should have a list of permissions that you know your application must have to properly function. If you have the documentation for managed libraries you use, you should be able to gather this information while developing the application. When you have the list of required permissions, you should use it in a minimal permission request. This has two primary benefits. First, it is a statement to users and administrators that your application needs certain permissions to run properly. Second, it gives ...

Get .NET Framework 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.