Open GoogleCodeExporter opened 8 years ago
Original comment by m.kaepp...@gmail.com
on 9 May 2010 at 12:52
Attached is my experimentation to adapt Signpost as an HttpClient AuthScheme.
It's close, but missing one crucial component -- since HttpClient makes an
unauthenticated request and reacts to the 401 by adding the auth credentials,
the second request object doesn't contain the full URI and hence can't be
signed. Oleg, the HttpClient lead dev says this is a design oversight that
will be fixed in HttpClient 4.1. So for now it appears that Signpost as an
AuthScheme is a no-go, unless you could work around it using preemptive auth
(see section 4.8 here:
http://hc.apache.org/httpcomponents-client/tutorial/html/authentication.html).
Sorry, source is written in Groovy for quick development, but you should get
the idea :)
Original comment by tmnich...@gmail.com
on 9 Sep 2010 at 9:47
Attachments:
@Do you have a reference for the changes that were needed in httpclient? 4.1
went GA yesterday ...
Original comment by smparkes...@gtempaccount.com
on 25 Jan 2011 at 7:26
Ah. Found it. ContextAwareAuthScheme ...
Original comment by smparkes...@gtempaccount.com
on 25 Jan 2011 at 7:28
Yup, that is it. You should be able to find examples of how to reconstruct the
request URI from the context.
Original comment by tmnich...@gmail.com
on 27 Jan 2011 at 4:57
Original issue reported on code.google.com by
tmnich...@gmail.com
on 5 May 2010 at 5:13