Re: AuthScheme impl for OAuth

2010-09-13 Thread Thom Nichols
My apologies -- I actually didn't catch that HTTP_TARGET_HOST returns a HttpHost object with a scheme property. I thought TARGET_HOST just returned a String. Thank you for pointing that out. For the record, Signpost works great in a request interceptor! Thanks again Oleg. On Mon, Sep 13, 2010

Re: AuthScheme impl for OAuth

2010-09-13 Thread Oleg Kalnichevski
On Mon, 2010-09-13 at 09:03 -0400, Thom Nichols wrote: > A follow-up question -- > > I'm not sure how to reconstruct the full request URI given the > HttpURIRequest and HttpContext. It appears the URI from the request itself > always contains the path portion of the original request URI. I can g

Re: AuthScheme impl for OAuth

2010-09-13 Thread Thom Nichols
A follow-up question -- I'm not sure how to reconstruct the full request URI given the HttpURIRequest and HttpContext. It appears the URI from the request itself always contains the path portion of the original request URI. I can get the host & port from the ExecutionContext.HTTP_TARGET_HOST att

Re: AuthScheme impl for OAuth

2010-09-09 Thread Thom Nichols
Ah! That answers that :) I'll probably create a branch for 4.1 integration and OAuth support but I probably won't want to depend on it until it at least reaches beta stage. But thank you for the response. I'll look forward to it :) -Tom On Thu, Sep 9, 2010 at 5:25 PM, Oleg Kalnichevski wrote

Re: AuthScheme impl for OAuth

2010-09-09 Thread Oleg Kalnichevski
On Thu, 2010-09-09 at 17:20 -0400, Thom Nichols wrote: > I understand how the HTTP request is represented on the wire, but > HttpRequest.getURI() will still hold the full URI (except I'm guessing in > the situation of redirects and auths where > 1 request is made.) The > original request.getURI()

Re: AuthScheme impl for OAuth

2010-09-09 Thread Thom Nichols
I understand how the HTTP request is represented on the wire, but HttpRequest.getURI() will still hold the full URI (except I'm guessing in the situation of redirects and auths where > 1 request is made.) The original request.getURI() returned the full URI: http://twitter.com/statuses/update.xml

Re: AuthScheme impl for OAuth

2010-09-09 Thread Asankha C. Perera
Hi Tom So I'm trying to implement an AuthScheme for OAuth (actually I'm trying to augment SignPost to work with HttpClient's AuthScheme, but anyway...) The problem I'm running up against is when AuthScheme.authenticate( Credentials, HttpRequest ) is called. The problem is, in order for the req

Re: AuthScheme impl for OAuth

2010-09-09 Thread Thom Nichols
So I'm trying to implement an AuthScheme for OAuth (actually I'm trying to augment SignPost to work with HttpClient's AuthScheme, but anyway...) The problem I'm running up against is when AuthScheme.authenticate( Credentials, HttpRequest ) is called. The problem is, in order for the request to b