Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1.0
-
None
-
Any
Description
When trying to connect to a webservice using the Axis2/C 1.1 client library, authentication is failing because http_sender.c is using a case sensitive compare between the server returned authentication required and the types of authentication that the client knows how to handle. Here is a diff of http_sender.c with the changes I made to enable BASIC authentication interoperable with Basic authentication.
1293c1293
< if (axutil_strcmp(auth_type, AXIS2_HTTP_AUTH_TYPE_BASIC) == 0)
—
> if (axutil_strcasecmp(auth_type, AXIS2_HTTP_AUTH_TYPE_BASIC) == 0)
1296c1296
< else if (axutil_strcmp(auth_type, AXIS2_HTTP_AUTH_TYPE_DIGEST) == 0)
—
> else if (axutil_strcasecmp(auth_type, AXIS2_HTTP_AUTH_TYPE_DIGEST) == 0)