App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Classes | Public Member Functions | Public Attributes | List of all members
google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerOAuth2 Class Reference
Inheritance diagram for google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerOAuth2:
google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerHttpLib2

Classes

class  OAuth2Parameters
 

Public Member Functions

def __init__
 
- Public Member Functions inherited from google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerHttpLib2
def __init__
 
def Send
 

Public Attributes

 oauth2_parameters
 
 storage
 
 credentials
 
- Public Attributes inherited from google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerHttpLib2
 host
 
 auth_function
 
 user_agent
 
 source
 
 host_override
 
 extra_headers
 
 save_cookies
 
 auth_tries
 
 account_type
 
 debug_data
 
 secure
 
 ignore_certs
 
 rpc_tries
 
 scheme
 
 certpath
 
 cert_file_available
 
 memory_cache
 
 http
 

Detailed Description

A variant of HttpRpcServer which uses oauth2.

This variant is specifically meant for interactive command line usage,
as it will attempt to open a browser and ask the user to enter
information from the resulting web page.

Constructor & Destructor Documentation

def google.appengine.tools.appengine_rpc_httplib2.HttpRpcServerOAuth2.__init__ (   self,
  host,
  oauth2_parameters,
  user_agent,
  source,
  host_override = None,
  extra_headers = None,
  save_cookies = False,
  auth_tries = None,
  account_type = None,
  debug_data = True,
  secure = True,
  ignore_certs = False,
  rpc_tries = 3 
)
Creates a new HttpRpcServerOAuth2.

Args:
  host: The host to send requests to.
  oauth2_parameters: An object of type OAuth2Parameters (defined above)
that specifies all parameters related to OAuth2 authentication. (This
replaces the auth_function parameter in the parent class.)
  user_agent: The user-agent string to send to the server. Specify None to
omit the user-agent header.
  source: Saved but ignored.
  host_override: The host header to send to the server (defaults to host).
  extra_headers: A dict of extra headers to append to every request. Values
supplied here will override other default headers that are supplied.
  save_cookies: If the refresh token should be saved.
  auth_tries: The number of times to attempt auth_function before failing.
  account_type: Ignored.
  debug_data: Whether debugging output should include data contents.
  secure: If the requests sent using Send should be sent over HTTPS.
  ignore_certs: If the certificate mismatches should be ignored.
  rpc_tries: The number of rpc retries upon http server error (i.e.
Response code >= 500 and < 600) before failing.

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