Appengine_oauth_provider is a project mainly written in Python, it's free.
A helper lib to create an OAuth provider on Google Appengine. With this you can create web APIs on GAE that are OAuth protected.
This code is based on the django-oauth plugin. I have tried to maintain most of the code structure, replacing the django specific code with the equivalent in GAE.
For e.g.:
import oauth_request
url_mappings = [
('/request_token',oauth_request.RequestTokenHandler),
('/access_token', oauth_request.AccessTokenHandler),
('/authorize', oauth_request.AuthorizeHandler),
('/api/test/?', ApiHandler)
]
For e.g:
from oauth_provider.decorators import oauth_required
class ApiHandler(webapp.RequestHandler):
@oauth_required
def get(self,user):
self.response.out.write("hello world!")
return
Checkout the example GAE application in the example folder for a clearer explanation.
The tests are within the tests.py module in the root folder and have the following dependencies - nosetests, nose-gae and webtest installed To run the tests, from within the root folder do the following
nosetests --with-gae --gae-application=./example/ tests.py