[appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Rob
I'd like to create a RESTful web service in GAE. I want to restrict access with authentication. I want to call the service from a Java program that is run unattended. How can I authenticate from the Java program? I see ClientLogin, but that seems to be oriented toward an interactive

Re: [appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Bruno Fuster
Hi Rob, I'm developing an iphone app using GAE as a RESTful back-end and I've implemented my own auth using HTTP Digest over SSL. RESTful services should be stateless, so each authenticated call should send the user information (tokens or login/pass). To Login, just create a service that returns

Re: [appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Bruno Fuster
A very simple solution is to use a filter that checks whether a method has a particular annotation. My auth methods have an annotation called @AuthRequired that will only succeed if the user is ok and then inject that user into my resources. On Tue, Jul 19, 2011 at 11:00 AM, Bruno Fuster