
PassportAuthenticationEventArgs | 543
Security
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
FormsAuthentication.{Decrypt( ), RenewTicketIfOld( )}, FormsIdentity.Ticket
Passed To
FormsAuthentication.{Encrypt( ), RenewTicketIfOld( )}, FormsIdentity.FormsIdentity( )
FormsIdentity
System.Web.Security (system.web.dll)
serializable
sealed class
This System.Security.Principal.IIdentity instance provides information to the FormsAuthentication-
Module about the current user identity. This information consists of the username
(Name), the type of authentication (AuthenticationType), which will always be “Forms,” and
the corresponding ticket object (Ticket)
.
PassportAuthenticationEventArgs
System.Web.Security (system.web.dll)
sealed class
This class is a custom System.EventArgs object that is used in the event handler for the Pass-
portAuthenticationModule.Authenticate event. It provides three properties: Context, which
provides a reference to the current System.Web.HttpContext; User, which will be a null refer-
ence and Identity, which will contain the information received from Passport as a
PassportIdentity object.
You can implement a custom authentication scheme and set the User value program-
matically to the appropriate user identity. If you do not set it to a non-null value, the
PassportAuthenticationModule will create