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.
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.
|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.|
Advanced users use this event to attach a custom IPrincipal object to the context.
For more information about handling events, see Consuming Events.
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family