PassportAuthenticationModule.Authenticate Event
Raised during authentication. This is a Global.asax event that must be named PassportAuthentication_OnAuthenticate.
[Visual Basic] Public Event Authenticate As PassportAuthenticationEventHandler [C#] public event PassportAuthenticationEventHandler Authenticate; [C++] public: __event PassportAuthenticationEventHandler* Authenticate;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
Event Data
The event handler receives an argument of type PassportAuthenticationEventArgs containing data related to this event. The following PassportAuthenticationEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Context | Gets the HttpContext object for the current HTTP request. |
| Identity | Gets an authenticated Passport identity. |
| User | Gets or sets the IPrincipal object to be associated with the request. |
Remarks
Advanced users use this event to attach a custom IPrincipal object to the context.
For more information about handling events, see Consuming Events.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
PassportAuthenticationModule Class | PassportAuthenticationModule Members | System.Web.Security Namespace