Hi, again, Martin-
Thanks to all of your help, I have an app that is working. Thanks so much!
I have another question that has cropped up, and I don't know if it's a library
issue, an issue in my app, or if it's expected behavior: after I have
successfully retrieved a protected resource, if I issue the same request again
(including the "code" query parameter), my client (proxy) app gets a 403
("Forbidden") status. The server log for the proxy app includes a line that
says, "Could not find token resource." It seems to be throwing an exception in
OAuthProxy.beforeHandle() on line 316:
Representation body = tokenResource.post(input);
I'm still working through this, but if it turns out that this is expected
behavior or a known problem, I'll stop.
Once again, thanks for your help!
--------------------------
John Wismar
Alldata Technology
916-478-3296
> -----Original Message-----
> From: Martin Svensson [mailto:[email protected]]
> Sent: Tuesday, July 19, 2011 7:54 PM
> To: [email protected]
> Subject: RE: OAuth extension in Incubator
>
> John,
>
> Im attaching 3 projects that should work.
>
> oauth-server.zip - A project creating an oauth server on port 9090.
> protected-resource.zip - A project that protects a resource using the oauth-
> server proxy-resource.zip - A project that access the protected-resource
>
> You can compile these three projects a run on a servlet server
>
> Observe that these projects uses the absolute latest version of the 2.1
> SNAPSHOT (I dont know if that has been compiled to a maven snapshot yet
> (if that is what you use for building).
>
> I am currently verifying a simple example that access Google data - I will
> post
> these as well on the wiki or upload to the example project
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId
> =2798277
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2799041