Google Code offered in: English - Español - 日本語 - 한국어 - Português - Pусский - 中文(简体) - 中文(繁體)
OAuth for Python is an experimental, innovative, and rapidly changing new feature for App Engine. Unfortunately, being on the bleeding edge means that we may make backwards-incompatible changes to OAuth for Python. We will inform the community when this feature is no longer experimental.
The google.appengine.api.oauth
package provides the following functions:
Returns the User object for the user represented by the OAuth consumer making this request. If the OAuth consumer did not make a valid OAuth request (such as an invalid token or other protocol parameters), calling this function raises a OAuthRequestError.
When called in the local development server, this method always returns a User object with email
set to "example@example.com" and user ID set to 0.
Returns True
if the user of the OAuth consumer making this request is currently registered as an administrator of this application. If the OAuth consumer did not make a valid OAuth request, calling this function raises a OAuthRequestError.
Returns the OAuth consumer key provided with the current request. If the OAuth consumer did not make a valid OAuth request, calling this function raises a OAuthRequestError.