[ 
http://issues.apache.org/jira/browse/AXIS2-1082?page=comments#action_12434404 ] 
            
Saminda Wishwajith Abeyruwan commented on AXIS2-1082:
-----------------------------------------------------

Commons-httpclient provides NTLM, Digest and Basic Authentication. Depending on 
the server it does choose the Authentication Mechanism. Thus, in Axis2 there 
exist only one bean for Authentication, its an inner class named Authenticator 
in HttpTransportProperties. When writing the client, if it needs 
authentication, client app should set the following property,

Options options = new Options();

...
HttpTransportProperties.Authenticator auth = new 
HttpTransportProperties.Authenticator();
auth.setUsername("axis2");
auth,setPassword("axis2");
auth.set..

options.setProperty(HTTPConstants.AUTHENTICATE,auth);

...

Thus, above is the only thing a user has to set to enable authentication. Then, 
depending on the server, commons-httpclient uses the auth starting from NTLM 
then Digest finally Basic. 


Please do check this out with your existing clients. 

> digest authentication is not working
> ------------------------------------
>
>                 Key: AXIS2-1082
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1082
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>         Environment: Windows XP, using Axis 2 nightly build 
>            Reporter: jeff ling
>         Assigned To: Saminda Wishwajith Abeyruwan
>
> Digest Auth should work, httpclient supports it. It's a matter of how to use 
> httpclient from axis2. 
> Another problem is, currently client has to specify whether to use basic, 
> ntlm, but that's not right. The ntlm, digest, basic should be tried in that 
> sequence without client's specification.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to