Using Google AppEngine app as a OAuth provider

Posted by Alistair on Stack Overflow See other posts from Stack Overflow or by Alistair
Published on 2010-06-12T17:44:43Z Indexed on 2010/06/12 17:53 UTC
Read the original article Hit count: 272

Filed under:
|

Hi,

I'm using the Google AppEngine 1.3.4 SDK which offers to allow your application to act as a OAuth service provider (http://code.google.com/appengine/docs/python/oauth/). Setting up a standard application on my localhost and using the following:

Request URL /_ah/OAuthGetRequestToken
Authorize URL /_ah/OAuthAuthorizeToken
Access Token URL /_ah/OAuthGetAccessToken

The client application just gets sent to a page requesting to grant OAuth access even though no user is logged in. Clicking 'Grant access' results in a message saying 'OAuth access granted' with no tokens or anything exchange. Can't see how this could work when it's not even prompting for a login.

As this functionality is quite new I can't find much out there. I've created a OAuth provider before in Rails and know that you need a Consumer Key and Secret, something that seems to be lacking in GAE?

Any ideas on how to get OAuth working in a sample GAE project are most welcome.

© Stack Overflow or respective owner

Related posts about python

Related posts about google-app-engine