You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Blanc, Isabelle" <Is...@mairie-paris.fr> on 2004/01/02 10:13:56 UTC

RE : authentication ...

Then the code should be changed to something like : 
...
if (challenge != null && !challenge.equalsIgnoreCase("ntlm")) {
...
and it would work perfectly ! (and it'd be cleaner than our crappy (but efficient ;]) workaround)

Thanks for your answer :)

Have all a nice day 
Isabelle

> -----Original Message-----
> From: Steve Vaughan [mailto:snmvaughan92@yahoo.com] 
> Sent: Wednesday, December 31, 2003 5:14 PM
> To: Commons HttpClient Project
> Subject: Re: authentication ...
> 
> 
> We ran into the same problem (and used the same temporary 
> workaround).  It 
> seems to me that HttpAuthenticator.selectAuthScheme should 
> take into account 
> the credentials that are available, skipping authentications 
> schemes without 
> credentials.  In your case, since you only provided 
> UsernamePasswordCredentials, NTLM couldn't possibly work so 
> it shouldn't have 
> been selected by the code.
> 
> -Steve
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org