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

The google.appengine.api.users package provides the following functions:

create_login_url ( dest_url = None , _auth_domain = None , federated_identity = None )

Returns a URL that, when visited, prompts the user to sign in using the current authentication option, then redirects the user back to the URL given as dest_url . This URL is suitable for links, buttons and redirects.

dest_url can be full URL or a path relative to your application's domain.

_auth_domain is ignored.

federated_identity is the user's OpenID identifier. (Note that the support for OpenID is experimental.) If the application is not configured for OpenID and this parameter is not empty, a NotAllowedError is raised. If the application is configured for OpenID, the resulting login URL redirects the user to log in using OpenID. Note that the OpenId identifier can be any identifier which is discoverable using OpenId protocol. If the parameter is not specified, URL redirects the user to log in with OpenID using the Google OpenID sign-in page.
This parameter is specified as a keyword argument, e.g. create_login_url(destination_url, federated_identity=requested_identity)

create_logout_url ( dest_url )

Returns a URL that, when visited, signs the user out, then redirects the user back to the URL given as dest_url . This URL is suitable for links, buttons and redirects.

dest_url can be full URL or a path relative to your application's domain.

get_current_user ()

Returns the User object for the current user (the user who made the request being processed) if the user is signed in, or None if the user is not signed in.

is_current_user_admin ()

Returns True if the current user is signed in and is currently registered as an administrator of this application.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.