Re: [google-appengine] Users service, urlfetch and 2-legged oauth?

2011-04-08 Thread Jan Z/ Hapara
Yesh - it's close, but as I think you pointed out on another thread, not the same as api.users - which means kludgy code. It would really make sense to merge users and oauth, they really are the same thing from the service consumer standpoint. I *might* want to know which was used, but 90% of

Re: [google-appengine] Users service, urlfetch and 2-legged oauth?

2011-04-08 Thread Robert Kluin
I did a couple quick tests this evening (in Python). I wrote a couple super simple handlers to walk me through the (three-legged) OAuth setup, then stored the token in the datastore. One the provider side I wrote a simple utility function, get_user that return users.get_current_user() if it

Re: [google-appengine] Users service, urlfetch and 2-legged oauth?

2011-04-08 Thread Robert Kluin
Just a small follow up, I did some testing with a federated login app. This seems to work fine for Google Accounts. For Google Apps accounts the authentication process appears to happen correctly, but the app does not recognize a user on subsequent requests (even though I do get an access token).

[google-appengine] Users service, urlfetch and 2-legged oauth?

2011-04-07 Thread Jan Z/ Hapara
Is it possible to authenticate into the appengine.users service via urlfetch / 2LO? Picture this scenario: A GAE-based site with rich existing functionality already provides AJAX/etc data feeds and validates users with the appengine.users package (for example Khan Academy?) We wish to

Re: [google-appengine] Users service, urlfetch and 2-legged oauth?

2011-04-07 Thread Robert Kluin
Have you looked at the OAuth service docs? http://code.google.com/appengine/docs/java/oauth/ Robert On Fri, Apr 8, 2011 at 00:49, Jan Z/ Hapara jan.zawad...@gmail.com wrote: Is it possible to authenticate into the appengine.users service via urlfetch / 2LO? Picture this scenario: A