abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: How to configure AbderaClient to *not* use an Authentication Scheme?
Date Wed, 19 Sep 2007 14:23:47 GMT
In Abdera, the "CommonsClient" (now called AbderaClient in 0.3.0) is a
wrapper for the Apache HttpClient.

- James

herbert wrote:
> Hi James!
> 
> 
> James M Snell wrote:
>> Herbert, here's the answer I got back from the Activities folks.
>>
>> Unfortunately, CommonsClient (AbderaClient in 0.3.0) does not expose a
>> method for setting cookies manually like this.  It will retain cookies
>> that are returned by the server, however, so if you use Abdera to
>> authenticate and get a LTPA cookie back, it should be automatically
>> reused.
>>
> 
> Thanks for the efforts! I would like to have this "hot wire" to the
> activities-team too! ;-)
> 
> I can work around the issue by providing RequestOptions like this:
> requestOptions.addHeader("Cookie", "LtpaToken="+ltpa);
> I don't have to set an authorization-header, so this works well for me.
> 
> One thing in your answer slightly irritates me:
> Is there a "Apache HttpClient" and a "CommonsClient"?
> Where's the difference?
> 
> Regards, Herbert
> 
> 
> -------- Original Message --------
> [snip]
> From: 	Andy Myers <--->
> [snip]
> 
> 
> James,
> 
> The Notes 8 Activities sideshelf can use either basic authentication or
> an LTPA token. Underlying the implementation is the Apache HttpClient,
> and the only code change is to use
> 
> _http.getState().setCredentials(AuthScope.ANY,  new
> UsernamePasswordCredentials(userName, userPassword));
> 
> in one case, and
> 
> _http.getState().addCookies(ssotokens);
> 
> in the other. I am not sure how this maps to the CommonsClient used by
> Abdera, but I guess it should be pretty similar.
> 
> Regards,
> Andy.
> [snip]
> 
> 
> herbert wrote:
>> Hi James!
>>
>>
>> James M Snell wrote:
>>> Hey Herbert, I forwarded the note on to one of the Connections
>>> developers that has experience using Abdera as a client.  She should be
>>> getting back to you soon.
>>>
>> This would be great! Thanks!
> 
> 
> 

Mime
View raw message