
204
|
Chapter 9: ASP.NET Security
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<authentication mode="Passport">
<passport redirectUrl="someLocalpage.aspx"/>
</authentication>
<!--
Other configuration elements
-->
</system.web>
</configuration>
Note that the <passport> element and the redirectUrl attribute are optional and
are used to specify an internal URL to redirect to if the users making the request
have not signed in using their Passport accounts. If the
<passport> element is
omitted, users who have not logged in using their Passport account will be redi-
rected to a login page on a Passport login server.
Authorization
Authorization is the process of determining whether the user identified by the
authentication process is allowed to access the resource that they’re requesting or
whether to take the action that they’re attempting to take (such as updating data
in a database). While authentication asks the question “Who are you?”, authori-
zation asks the question “Are you allowed to do that?” The answer to that
question determines whether the user’s action is allowed.
Authorization in ASP.NET takes three forms, which are all discussed in this
section: ACL-based authorization, URL authorization, and programmatic
authorization.
ACL-Based Authorization
Access Control Lists (ACLs) are used in Windows NT, Windows 2000, Windows
XP, and ...