Hello all, and apologies in advance for what's probably the wrong question.

I am trying to get OAuth to work for my RESTlet-based service--not to
authenticate use of my service, but to enable my service to communicate with
a remote REST service. I understand, from reading previous posts, that OAuth
is not yet fully supported in RESTlet, so this is not that question.

My particular problem is that I need to go through the OAuth dance with a
remote server. This server provides a set of client utilities (OAuthHelper)
for authenticating with it. Its OAuthHelper knows what particular cookies
etc. it uses. Therefore, in an ideal world, I'd just as soon use its
OAuthHelper.

Unfortunately, its OAuthHelper is written to Apache HTTPclient, so its
methods require HTTPRequest and HTTPResponse objects, rather than the
Request/Response objects I have in my RESTlets.

My question is, is there any simple way to do the OAuth dance with this
remote server, without my having to manually translate between the
HTTPRequest/HTTPResponse objects its OAuthHelper wants and my RESTlet
Request/Response objects? Or am I really going to have to write the adapters
myself?

(Yes, I know this is not a nice or desirable solution! If there is a nicer
one in the absence of OAuth support in RESTlet, I would be so happy to hear
about it.)

Thanks very much in advance for any help you can offer!
     Peri
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/adaptor-to-make-Request-Response-look-like-Apache-equivalents-tp5522170p5522170.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2657926

Reply via email to