abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From herbert <i...@gmx.de>
Subject Re: How to configure AbderaClient to *not* use an Authentication Scheme?
Date Wed, 19 Sep 2007 13:30:50 GMT

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 --------
From: 	Andy Myers <--->


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


in the other. I am not sure how this maps to the CommonsClient used by
Abdera, but I guess it should be pretty similar.


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!

View this message in context: http://www.nabble.com/How-to-configure-AbderaClient-to-*not*-use-an-Authentication-Scheme--tf4443484.html#a12777485
Sent from the abdera-user mailing list archive at Nabble.com.

View raw message