
544
|
Chapter 29: The System.Web.Security Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
PassportAuthenticationEventHandler
System.Web.Security (system.web.dll)
serializable
delegate
This delegate represents the event handler that can be used to handle the PassportAuthenti-
cationModule.Authenticate event. This event handler must be coded in the global.asax file,
using the event handler name PassportAuthentication_OnAuthenticate.
Associated Events
PassportAuthenticationModule.Authenticate( )
PassportAuthenticationModule
System.Web.Security (system.web.dll)
sealed class
This module, when loaded through the web.config file (<authentication mode="Passport">),
provides authentication using Microsoft’s Passport service. In this model, the ASP.NET
framework will check for the Passport “ticket” (an encrypted value in a cookie or the
query string) and use it to authenticate the user. If no ticket is present, or if it has
expired, the user will be redirected to the Passport service’s login page. The user will be
redirected automatically to the original ASP.NET page with the correct ticket after
logging in. At this point, the Authenticate event will be fired. You can handle this event
with an event handler named PassportAuthentication_OnAuthenticate in the global.asax file.
The location of the Passport login page is set using the <passport ...