Provides request-specific information about a user. This information includes data such as credentials and role-based authorization.
The following table lists the methods exposed by the IHttpUser interface.
Decrements the user internal reference count.
Returns the request authentication type.
Returns the user impersonation token.
Returns the user password.
Returns the primary user token.
Returns the remote user name.
Returns the user name.
Returns the custom user data by name.
Returns a value that indicates whether the user is authorized for a named role.
Increments the user internal reference count.
Returns a value that indicates whether role support is enabled for the user.
This interface contains no derived classes.
You can retrieve an IHttpUser pointer from an IHttpContext pointer by calling the IHttpContext::GetUser method. To gain access to these interfaces, see Walkthrough: Creating a Request-Level HTTP Module By Using Native Code.
The following code example demonstrates how to create an HTTP module that clears the response headers and body and then returns user information to the client as an XML document.