Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Functions

Experimental!

OAuth for Python is an experimental, innovative, and rapidly changing new feature for Google 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:

get_current_user ()

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 "[email protected]" and user ID set to 0.

is_current_user_admin ()

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 .

get_oauth_consumer_key ()

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 .


Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.