You will have to use the ClientLogin API to get a token and use the token to
get a cookie from App Engine which you can then use for all subsequent
requests. The general process (for Python) is written up here:
http://stackoverflow.com/questions/101742/how-do-you-access-an-authenticated-google-app-engine-service-from-a-non-web-pyt

Please let me know if you have any more questions on this.

- Jason

On Mon, Aug 31, 2009 at 8:54 AM, Erdinc Yilmazel
<erdincyilma...@gmail.com>wrote:

> Hi,
>
> I have a servlet in my appengine java application which has an admin role
> security constraint on it. When I try to access this servlet google asks me
> to login using my google account and everything works fine. What I want to
> do is to write a desktop application which interacts with this servlet
> remotely over https. So instead of using a browser to communicate with the
> servlet, I am going to implement an http client for my application (Using
> commons httpclient). Since there is a security constraint on the servlet
> running on appengine, my http client has to sign in to google somehow... If
> I login using a browser and copy the cookies set by google to my own http
> client, everything works as expected. What is the best way to implement a
> login procedure for a desktop app like this? I want the user of the app (Me
> in this case) to enter the google username and password and access the
> password protected servlet remotely...
>
> One thing I tried was simulating the exact browser and user behaviour
> (Filling in the form for username and password, submitting it, following
> redirects etc.) and this was working a couple of months ago, but when google
> changes something, it fails. Is there an api for this?
>
> Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to