O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Supporting Authorization

Once you've authenticated a user (that is, determined that you know who the user is), you may want to restrict or deny access to various parts of your site, or to various activities on your site, based on the user's identity. This process is called authorization. As an example, you might want to allow supervisors and managers to access the Maintenance menu on your site but hide the menu from normal users. ASP.NET provides several techniques for managing authorization in your applications. This section investigates three different issues:

  • Controlling authorization using Web.config

  • Managing authorization dynamically

  • Taking advantage of role-based authorization

Using Web.Config

You can use the authorization element in Web.config ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required