Performs the authentication method specified by a
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Request for which the authentication method is to be performed.
CFHTTPAuthenticationobject specifying the authentication method to perform.
Username for performing the authentication.
Password for performing the authentication.
If an error occurs, upon return contains a
CFStreamobject that describes the error and the error’s domain. Pass
NULLif you don’t want to receive error information.
TRUE if the authentication was successful, otherwise,
This function performs the authentication method specified by
auth on behalf of the request specified by
request using the credentials specified by
password. If, in addition to a username and password, you also need to specify an account domain, call
CFHTTPMessage instead of this function.
This function is appropriate for performing several authentication requests. If you only need to make a single authentication request, consider using
This function is thread safe as long as another thread does not alter the same
CFHTTPMessage object at the same time.