WindowsAuthenticationModule.Authenticate Event
Raised during authentication. This is a Global.asax event that must be named WindowsAuthentication_OnAuthenticate. It is used primarily to attach a custom IPrincipal object to the context.
[Visual Basic] Public Event Authenticate As WindowsAuthenticationEventHandler [C#] public event WindowsAuthenticationEventHandler Authenticate; [C++] public: __event WindowsAuthenticationEventHandler* 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 WindowsAuthenticationEventArgs containing data related to this event. The following WindowsAuthenticationEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Context | Gets the HttpContext object for the current HTTP request. |
| Identity | Gets an authenticated Windows identity. |
| User | Gets or sets the IPrincipal object to be associated with the request. |
Remarks
For more information about handling events, see Consuming Events.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
WindowsAuthenticationModule Class | WindowsAuthenticationModule Members | System.Web.Security Namespace | System.Web.Security