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

Module clientsecrets

source code

Utilities for reading OAuth 2.0 client secret files.

A client_secrets.json file contains all the information needed to interact with
an OAuth 2.0 protected service.


Author: jcgregorio@google.com (Joe Gregorio)

Classes [hide private]
  Error
Base error for this module.
  InvalidClientSecretsError
Format of ClientSecrets file is invalid.
Functions [hide private]
 
_validate_clientsecrets(obj) source code
 
load(fp) source code
 
loads(s) source code
 
loadfile(filename) source code
Variables [hide private]
  TYPE_WEB = 'web'
  TYPE_INSTALLED = 'installed'
  VALID_CLIENT = {'installed': {'required': ['client_id', 'clien...
  __package__ = 'oauth2client'
Variables Details [hide private]

VALID_CLIENT

Value:
{'installed': {'required': ['client_id',
                            'client_secret',
                            'redirect_uris',
                            'auth_uri',
                            'token_uri'],
               'string': ['client_id', 'client_secret']},
 'web': {'required': ['client_id',
                      'client_secret',
...