This topic has not yet been rated - Rate this topic

HTTP_FILTER_AUTHENT Structure 

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.


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;

Parameters

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.

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).

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.