Package oauth2client :: Module tools
[hide private]
[frames] | no frames]

Module tools

source code

Command-line tools for authenticating via OAuth 2.0

Do the OAuth 2.0 Web Server dance for a command line application. Stores the
generated credentials in a common file that is used by other example apps in
the same directory.


Author: jcgregorio@google.com (Joe Gregorio)

Classes [hide private]
  ClientRedirectServer
A server to handle OAuth 2.0 redirects back to localhost.
  ClientRedirectHandler
A handler for OAuth 2.0 redirects back to localhost.
Functions [hide private]
 
run(flow, storage, http=None)
Core code for a command-line application.
source code
Variables [hide private]
  FLAGS = gflags.FLAGS
  __package__ = 'oauth2client'
Function Details [hide private]

run(flow, storage, http=None)

source code 
Core code for a command-line application.

Args:
  flow: Flow, an OAuth 2.0 Flow to step through.
  storage: Storage, a Storage to store the credential in.
  http: An instance of httplib2.Http.request
       or something that acts like it.

Returns:
  Credentials, the obtained credential.