Skip to main content
ATL Server Library Reference 
CBasicAuthObject::Authenticate 

This method is called to perform BASIC authentication. It is not typically necessary to call this method explicitly.


virtual bool Authenticate(
   LPCTSTR szAuthTypes,
   bool bProxy 
) throw( );

Parameters

szAuthTypes

A string containing the authentication scheme name. For the BASIC scheme, this string will be "BASIC", as specified by the ATL_HTTP_AUTHTYPE_BASIC macro.

bProxy

true if a proxy server is being used for HTTP transactions, otherwise false.

Returns true on success, false on failure.

See the CAtlBaseAuthObject::Authenticate method for more information.