.NET Framework Security
by Brian A. LaMacchia, Sebastian Lange, Matthew Lyons, Rudi Martin, Kevin T. Price
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access