Thanks Jeff. I wouldn't have thought that the autorisation token could last that long. As it's called a "session token" in the AuthSub documentation, I thought I'd have to renew it for each user session.
I think I'll do as you say, however it would be useful to add some sort of a link between the two services (GAE users and gdata) to make it easier. Anyway, thanks for your help. On Jul 10, 1:19 am, "Jeff S (Google)" <[email protected]> wrote: > Hi Romain, > > Technically speaking it is possible to just ask for username and password, > then access Picassa Web Albums using Client Login, but please don't :-) In > cases like this where your app is accessed through the browser it makes much > more sense to use AuthSub or OAuth, but this does require that the user sign > in to your app (1st browser redirect) then authorize your app to access > their Picasa data (2nd browser redirect). After the first time they sign in, > you can store the authorization token and you will probably never need them > to do the 2nd redirect for authorization ever again (unless they revoke the > access token). For examples of this, please see the following articles: > > http://code.google.com/appengine/articles/gdata.htmlhttp://code.google.com/appengine/articles/more_google_data.html > > Thank you, > > Jeff > > On Wed, Jul 8, 2009 at 8:41 AM, Romain Vallet <[email protected]>wrote: > > > > > I'm writing a web application with GAE and I use Google Accounts for > > authentication. > > I would like to access Picasa web albums with gdata-python-client. > > > It seems like I need to ask the user for credentials twice : once for > > my app authentication (google.appengine.api.users), and once in order > > to get the picasa token (gdata.photos.service.PhotosService). > > > Is there a way to do this by asking only once for an email and > > password? > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
