Im running Google AppEngine. I have oauth2 开发者_StackOverflow中文版installed. Im successfully able to import oauth2 in program but when I run my python application using GoogleAppEngine Launcher on localhost, then I get the following error
ImportError: No module named oauth2
Im using Python2.7 which is not the default version of GoogleAppEngine, but I have changed the python path both in my project and in GoogleAppEngine Launcher.
Have you looked at this example? It shows OAuth2 being used in a Google App Engine Python project. This might give you a better sense of how to use OAuth2 and GAE.
Are you trying to authenticate inbound HTTP requests on App Engine using OAuth2?
I just posted a full end to end example here: google app engine oauth2 provider
精彩评论