HTTP_FILTER_AUTHENT Structure

The HTTP_FILTER_AUTHENT structure has the following form:

typedef struct _HTTP_FILTER_AUTHENT{

CHAR*    pszUser;                           //IN/OUT
DWORD    cbUserBuff;                        //IN
CHAR*    pszPassword;                       //IN/OUT
DWORD    cbPasswordBuff;                    //IN
} HTTP_FILTER_AUTHENT, *PHTTP_FILTER_AUTHENT;

This structure is pointed to by the pvNotification in the CHttpFilter::HttpFilterProc when NotificationType is SF_NOTIFY_AUTHENTICATION, which indicates when the server is about to authenticate the client. This structure can be used to implement a different authentication scheme by overriding CHttpFilter::OnAuthentication.

The references to IN or IN/OUT above indicate whether the member applies to messages to the filter (IN) or both to and from the filter (IN/OUT).

Members

pszUser

Pointer to a string containing the username for this request.  An empty string indicates an anonymous user.

cbUserBuff

Size of the buffer pointed to by pszUser.  This is guaranteed to be at least SF_MAX_USERNAME.

pszPassword

Pointer to a string containing the password for this request.

cbPasswordBuff

Size of the buffer pointed to by pszPassword.  This is guaranteed to be at least SF_MAX_PASSWORD.

See AlsoCHttpFilter::HttpFilterProc, CHttpFilter::OnAuthentication