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

Module appengine

source code

Utilities for Google App Engine

Utilities for making it easier to use OAuth 2.0 on Google App Engine.


Author: jcgregorio@google.com (Joe Gregorio)

Classes [hide private]
  InvalidClientSecretsError
The client_secrets.json file is malformed or missing required fields.
  AppAssertionCredentials
Credentials object for App Engine Assertion Grants
  FlowProperty
App Engine datastore Property for Flow.
  CredentialsProperty
App Engine datastore Property for Credentials.
  StorageByKeyName
Store and retrieve a single credential to and from the App Engine datastore.
  CredentialsModel
Storage for OAuth 2.0 Credentials
  OAuth2Decorator
Utility for making OAuth 2.0 easier.
  OAuth2DecoratorFromClientSecrets
An OAuth2Decorator that builds from a clientsecrets file.
  OAuth2Handler
Handler for the redirect_uri of the OAuth 2.0 dance.
Functions [hide private]
 
oauth2decorator_from_clientsecrets(filename, scope, message=None, cache=None)
Creates an OAuth2Decorator populated from a clientsecrets file.
source code
 
main() source code
Variables [hide private]
  logger = logging.getLogger(__name__)
  OAUTH2CLIENT_NAMESPACE = 'oauth2client#ns'
  application = webapp.WSGIApplication([('/oauth2callback', OAut...
  __package__ = 'oauth2client'
Function Details [hide private]

oauth2decorator_from_clientsecrets(filename, scope, message=None, cache=None)

source code 
Creates an OAuth2Decorator populated from a clientsecrets file.

Args:
  filename: string, File name of client secrets.
  scope: string or list of strings, scope(s) of the credentials being
    requested.
  message: string, A friendly string to display to the user if the
    clientsecrets file is missing or invalid. The message may contain HTML and
    will be presented on the web interface for any method that uses the
    decorator.
  cache: An optional cache service client that implements get() and set() 
    methods. See clientsecrets.loadfile() for details.

Returns: An OAuth2Decorator


Variables Details [hide private]

application

Value:
webapp.WSGIApplication([('/oauth2callback', OAuth2Handler)])