App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.user_service_stub.UserServiceStub Class Reference
Inheritance diagram for google.appengine.api.user_service_stub.UserServiceStub:
google.appengine.api.apiproxy_stub.APIProxyStub

Public Member Functions

def __init__
 
def SetOAuthUser
 
- Public Member Functions inherited from google.appengine.api.apiproxy_stub.APIProxyStub
def __init__
 
def CreateRPC
 
def MakeSyncCall
 
def SetError
 

Static Public Attributes

 THREADSAFE = True
 
- Static Public Attributes inherited from google.appengine.api.apiproxy_stub.APIProxyStub
 THREADSAFE = False
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.api.apiproxy_stub.APIProxyStub
 request_data
 

Detailed Description

Trivial implementation of the UserService.

Constructor & Destructor Documentation

def google.appengine.api.user_service_stub.UserServiceStub.__init__ (   self,
  login_url = _DEFAULT_LOGIN_URL,
  logout_url = _DEFAULT_LOGOUT_URL,
  service_name = 'user',
  auth_domain = _DEFAULT_AUTH_DOMAIN,
  request_data = None 
)
Initializer.

Args:
  login_url: String containing the URL to use for logging in.
  logout_url: String containing the URL to use for logging out.
  service_name: Service name expected for all calls.
  auth_domain: The authentication domain for the service e.g. "gmail.com".
  request_data: A apiproxy_stub.RequestData instance used to look up state
  associated with the request that generated an API call.

Note: Both the login_url and logout_url arguments must contain one format
parameter, which will be replaced with the continuation URL where the user
should be redirected after log-in or log-out has been completed.

Member Function Documentation

def google.appengine.api.user_service_stub.UserServiceStub.SetOAuthUser (   self,
  email = _OAUTH_EMAIL,
  domain = _OAUTH_AUTH_DOMAIN,
  user_id = _OAUTH_USER_ID,
  is_admin = False,
  scopes = None,
  client_id = _OAUTH_CLIENT_ID 
)
Set test OAuth user.

Determines what user is returned by requests to GetOAuthUser.

Args:
  email: Email address of oauth user.  None indicates that no oauth user
is authenticated.
  domain: Domain of oauth user.
  user_id: User ID of oauth user.
  is_admin:  Whether the user is an admin.
  scopes: List of scopes that user is authenticated against.
  client_id: Client ID of the OAuth2 request

The documentation for this class was generated from the following file: