Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Num attr Str Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr decorator_list If CompareIsNot NameLoad NameLoad body ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot NameLoad decorator_list decorator_list If CompareIsNot NameLoad NameLoad body ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareEq Call NameLoad NameLoad Num body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list If CompareIsNot NameLoad NameLoad body ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Str orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad decorator_list If CompareIsNot NameLoad NameLoad body ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad Return BinOpAdd BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr keyword NameLoad body Raise Call NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad Str kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad attr TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod Str Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Num
N/A N/A Utilities for Google App Engine

Utilities for making it easier to use OAuth 2.0 on Google App Engine.
 N/A cgi N/A json N/A logging N/A os N/A pickle N/A threading N/A httplib2 N/A webapp2 webapp google.appengine.api app_identity google.appengine.api memcache google.appengine.api users google.appengine.ext db google.appengine.ext.webapp.util login_required oauth2client GOOGLE_AUTH_URI oauth2client GOOGLE_REVOKE_URI oauth2client GOOGLE_TOKEN_URI oauth2client clientsecrets oauth2client util oauth2client.client AccessTokenRefreshError oauth2client.client AssertionCredentials oauth2client.client Credentials oauth2client.client Flow oauth2client.client OAuth2WebServerFlow oauth2client.client Storage oauth2client.contrib xsrfutil N/A N/A google.appengine.ext ndb N/A N/A N/A ImportError N/A N/A ndb None N/A __author__ jcgregorio@google.com (Joe Gregorio) N/A logger N/A N/A logging getLogger __name__ N/A OAUTH2CLIENT_NAMESPACE oauth2client#ns N/A XSRF_MEMCACHE_ID xsrf_secret_key _safe_html N/A N/A s N/A N/A N/A Escape text to make it safe to display.

    Args:
        s: string, The text to escape.

    Returns:
        The escaped text as a string.
     N/A N/A N/A N/A N/A cgi escape s quote 1 replace ' &#39; N/A InvalidClientSecretsError N/A Exception N/A N/A The client_secrets.json file is malformed or missing required fields. N/A InvalidXsrfTokenError N/A Exception N/A N/A The XSRF token is invalid or expired. N/A SiteXsrfSecretKey N/A N/A db Model N/A N/A Storage for the sites XSRF secret key.

    There will only be one instance stored of this model, the one used for the
    site.
     N/A secret N/A N/A db StringProperty N/A N/A N/A ndb None N/A SiteXsrfSecretKeyNDB N/A N/A ndb Model N/A N/A NDB Model for storage for the sites XSRF secret key.

        Since this model uses the same kind as SiteXsrfSecretKey, it can be
        used interchangeably. This simply provides an NDB model for interacting
        with the same data the DB model interacts with.

        There should only be one instance stored of this model, the one used
        for the site.
         N/A secret N/A N/A ndb StringProperty _get_kind N/A N/A cls N/A N/A N/A Return the kind name for this class. N/A SiteXsrfSecretKey N/A classmethod N/A _generate_new_xsrf_secret_key N/A N/A N/A N/A N/A Returns a random XSRF secret key. N/A N/A N/A N/A N/A os urandom 16 encode hex N/A xsrf_secret_key N/A N/A N/A N/A N/A Return the secret key for use for XSRF protection.

    If the Site entity does not have a secret key, this method will also create
    one and persist it.

    Returns:
        The secret key.
     N/A secret N/A N/A memcache get XSRF_MEMCACHE_ID namespace OAUTH2CLIENT_NAMESPACE N/A N/A secret N/A N/A model N/A N/A SiteXsrfSecretKey get_or_insert key_name site N/A N/A N/A model secret N/A N/A N/A model secret N/A _generate_new_xsrf_secret_key N/A N/A N/A model put N/A secret N/A model secret N/A N/A N/A memcache add XSRF_MEMCACHE_ID secret namespace OAUTH2CLIENT_NAMESPACE N/A N/A str secret N/A AppAssertionCredentials N/A AssertionCredentials N/A N/A Credentials object for App Engine Assertion Grants

    This object will allow an App Engine application to identify itself to
    Google and other OAuth 2.0 servers that can verify assertions. It can be
    used for the purpose of accessing data stored under an account assigned to
    the App Engine application itself.

    This credential does not require a flow to instantiate because it
    represents a two legged flow, and therefore has all of the required
    information to generate and refresh its own access tokens.
     __init__ N/A N/A self scope N/A kwargs N/A N/A Constructor for AppAssertionCredentials

        Args:
            scope: string or iterable of strings, scope(s) of the credentials
                   being requested.
            **kwargs: optional keyword args, including:
            service_account_id: service account id of the application. If None
                                or unspecified, the default service account for
                                the app is used.
         N/A N/A self scope N/A N/A util scopes_to_string scope N/A N/A self _kwargs kwargs N/A N/A self service_account_id N/A N/A kwargs get service_account_id None N/A N/A N/A N/A super AppAssertionCredentials self __init__ None N/A N/A N/A util positional 2 from_json N/A N/A cls json_data N/A N/A N/A data N/A N/A json loads json_data N/A N/A AppAssertionCredentials N/A data N/A scope N/A classmethod _refresh N/A N/A self http_request N/A N/A N/A Refreshes the access_token.

        Since the underlying App Engine app_identity implementation does its
        own caching we can skip all the storage hoops and just to a refresh
        using the API.

        Args:
            http_request: callable, a callable that matches the method
                          signature of httplib2.Http.request, used to make the
                          refresh request.

        Raises:
            AccessTokenRefreshError: When the refresh fails.
         N/A N/A N/A scopes N/A N/A N/A self scope split N/A N/A token _ N/A N/A app_identity get_access_token scopes service_account_id N/A self service_account_id N/A N/A N/A N/A app_identity Error N/A e N/A N/A N/A AccessTokenRefreshError N/A str e N/A N/A self access_token token N/A serialization_data N/A N/A self N/A N/A N/A N/A NotImplementedError Cannot serialize credentials for Google App Engine. N/A property create_scoped_required N/A N/A self N/A N/A N/A N/A N/A self scope N/A create_scoped N/A N/A self scopes N/A N/A N/A N/A AppAssertionCredentials scopes N/A self _kwargs N/A N/A FlowProperty N/A N/A db Property N/A N/A App Engine datastore Property for Flow.

    Utility property that allows easy storage and retrieval of an
    oauth2client.Flow
     N/A data_type Flow get_value_for_datastore N/A N/A self model_instance N/A N/A N/A flow N/A N/A N/A super FlowProperty self get_value_for_datastore model_instance N/A N/A N/A db Blob N/A N/A pickle dumps flow N/A make_value_from_datastore N/A N/A self value N/A N/A N/A N/A value None N/A N/A None N/A N/A N/A pickle loads value N/A validate N/A N/A self value N/A N/A N/A N/A N/A value None N/A N/A isinstance value Flow N/A N/A N/A N/A db BadValueError N/A Property %s must be convertible to a FlowThreeLegged instance (%s) N/A N/A self name value N/A N/A N/A N/A super FlowProperty self validate value N/A empty N/A N/A self value N/A N/A N/A N/A value N/A N/A N/A N/A ndb None N/A FlowNDBProperty N/A N/A ndb PickleProperty N/A N/A App Engine NDB datastore Property for Flow.

        Serves the same purpose as the DB FlowProperty, but for NDB models.
        Since PickleProperty inherits from BlobProperty, the underlying
        representation of the data in the datastore will be the same as in the
        DB case.

        Utility property that allows easy storage and retrieval of an
        oauth2client.Flow
         _validate N/A N/A self value N/A N/A N/A Validates a value as a proper Flow object.

            Args:
                value: A value to be set on the property.

            Raises:
                TypeError if the value is not an instance of Flow.
             N/A N/A N/A logger info validate: Got type %s N/A type value N/A N/A N/A value None N/A N/A isinstance value Flow N/A N/A N/A TypeError N/A Property %s must be convertible to a flow instance; received: %s. N/A N/A self _name value N/A N/A CredentialsProperty N/A N/A db Property N/A N/A App Engine datastore Property for Credentials.

    Utility property that allows easy storage and retrieval of
    oath2client.Credentials
     N/A data_type Credentials get_value_for_datastore N/A N/A self model_instance N/A N/A N/A N/A N/A logger info N/A get: Got type  N/A str N/A type model_instance N/A cred N/A N/A N/A super CredentialsProperty self get_value_for_datastore model_instance N/A N/A cred None N/A N/A cred N/A N/A cred N/A N/A cred to_json N/A N/A N/A db Blob cred N/A make_value_from_datastore N/A N/A self value N/A N/A N/A N/A N/A logger info N/A make: Got type  N/A str N/A type value N/A N/A value None N/A N/A None N/A N/A N/A len value 0 N/A N/A None N/A N/A N/A credentials N/A N/A Credentials new_from_json value N/A N/A N/A ValueError N/A N/A credentials None N/A credentials N/A validate N/A N/A self value N/A N/A N/A value N/A N/A N/A super CredentialsProperty self validate value N/A N/A N/A logger info N/A validate: Got type  N/A str N/A type value N/A N/A N/A value None N/A N/A isinstance value Credentials N/A N/A N/A N/A db BadValueError N/A Property %s must be convertible to a Credentials instance (%s) N/A N/A self name value N/A value N/A N/A N/A N/A ndb None N/A CredentialsNDBProperty N/A N/A ndb BlobProperty N/A N/A App Engine NDB datastore Property for Credentials.

        Serves the same purpose as the DB CredentialsProperty, but for NDB
        models. Since CredentialsProperty stores data as a blob and this
        inherits from BlobProperty, the data in the datastore will be the same
        as in the DB case.

        Utility property that allows easy storage and retrieval of Credentials
        and subclasses.
         _validate N/A N/A self value N/A N/A N/A Validates a value as a proper credentials object.

            Args:
                value: A value to be set on the property.

            Raises:
                TypeError if the value is not an instance of Credentials.
             N/A N/A N/A logger info validate: Got type %s N/A type value N/A N/A N/A value None N/A N/A isinstance value Credentials N/A N/A N/A TypeError N/A Property %s must be convertible to a credentials instance; received: %s. N/A N/A self _name value N/A _to_base_type N/A N/A self value N/A N/A N/A Converts our validated value to a JSON serialized string.

            Args:
                value: A value to be set in the datastore.

            Returns:
                A JSON serialized version of the credential, else '' if value
                is None.
             N/A N/A value None N/A N/A N/A N/A N/A N/A value to_json N/A _from_base_type N/A N/A self value N/A N/A N/A Converts our stored JSON string back to the desired type.

            Args:
                value: A value from the datastore to be converted to the
                       desired type.

            Returns:
                A deserialized Credentials (or subclass) object, else None if
                the value can't be parsed.
             N/A N/A value N/A N/A None N/A N/A N/A credentials N/A N/A Credentials new_from_json value N/A N/A N/A ValueError N/A N/A credentials None N/A credentials N/A N/A StorageByKeyName N/A Storage N/A N/A Store and retrieve a credential to and from the App Engine datastore.

    This Storage helper presumes the Credentials have been stored as a
    CredentialsProperty or CredentialsNDBProperty on a datastore model class,
    and that entities are stored by key_name.
     __init__ N/A N/A self model key_name property_name cache user N/A None None N/A N/A Constructor for Storage.

        Args:
            model: db.Model or ndb.Model, model class
            key_name: string, key name for the entity that has the credentials
            property_name: string, name of the property that is a
                           CredentialsProperty or CredentialsNDBProperty.
            cache: memcache, a write-through cache to put in front of the
                   datastore. If the model you are using is an NDB model, using
                   a cache will be redundant since the model uses an instance
                   cache and memcache for you.
            user: users.User object, optional. Can be used to grab user ID as a
                  key_name if no key name is specified.
         N/A N/A N/A N/A super StorageByKeyName self __init__ N/A N/A key_name None N/A N/A N/A user None N/A N/A N/A ValueError StorageByKeyName called with no key name or user. N/A key_name N/A N/A user user_id N/A N/A self _model model N/A N/A self _key_name key_name N/A N/A self _property_name property_name N/A N/A self _cache cache N/A N/A N/A util positional 4 _is_ndb N/A N/A self N/A N/A N/A Determine whether the model of the instance is an NDB model.

        Returns:
            Boolean indicating whether or not the model is an NDB or DB model.
         N/A N/A isinstance N/A self _model type N/A N/A N/A N/A ndb None N/A issubclass N/A self _model N/A ndb Model N/A N/A True N/A N/A N/A issubclass N/A self _model N/A db Model N/A N/A False N/A N/A TypeError N/A Model class not an NDB or DB model: %s. N/A N/A self _model N/A _get_entity N/A N/A self N/A N/A N/A Retrieve entity from datastore.

        Uses a different model method for db or ndb models.

        Returns:
            Instance of the model corresponding to the current storage object
            and stored using the key name of the storage object.
         N/A N/A N/A self _is_ndb N/A N/A N/A N/A N/A self _model get_by_id N/A self _key_name N/A N/A N/A N/A N/A self _model get_by_key_name N/A self _key_name N/A _delete_entity N/A N/A self N/A N/A N/A Delete entity from datastore.

        Attempts to delete using the key_name stored on the object, whether or
        not the given key is in the datastore.
         N/A N/A N/A self _is_ndb N/A N/A N/A N/A N/A N/A ndb Key N/A self _model N/A self _key_name delete N/A N/A entity_key N/A N/A N/A db Key from_path N/A N/A N/A self _model kind N/A self _key_name N/A N/A N/A db delete entity_key N/A locked_get N/A N/A self N/A N/A N/A Retrieve Credential from datastore.

        Returns:
            oauth2client.Credentials
         N/A credentials None N/A N/A self _cache N/A N/A json N/A N/A N/A self _cache get N/A self _key_name N/A json N/A N/A credentials N/A N/A Credentials new_from_json json N/A N/A credentials None N/A N/A entity N/A N/A self _get_entity N/A N/A entity None N/A N/A credentials N/A getattr entity N/A self _property_name N/A N/A self _cache N/A N/A N/A N/A N/A self _cache set N/A self _key_name N/A N/A credentials to_json N/A N/A credentials N/A hasattr credentials set_store N/A N/A N/A N/A credentials set_store self N/A credentials N/A N/A N/A db non_transactional allow_existing True locked_put N/A N/A self credentials N/A N/A N/A Write a Credentials to the datastore.

        Args:
            credentials: Credentials, the credentials to store.
         N/A entity N/A N/A N/A self _model get_or_insert N/A self _key_name N/A N/A setattr entity N/A self _property_name credentials N/A N/A N/A entity put N/A N/A self _cache N/A N/A N/A N/A N/A self _cache set N/A self _key_name N/A N/A credentials to_json N/A N/A N/A db non_transactional allow_existing True locked_delete N/A N/A self N/A N/A N/A Delete Credential from datastore. N/A N/A self _cache N/A N/A N/A N/A N/A self _cache delete N/A self _key_name N/A N/A N/A self _delete_entity N/A N/A N/A db non_transactional allow_existing True N/A CredentialsModel N/A N/A db Model N/A N/A Storage for OAuth 2.0 Credentials

    Storage of the model is keyed by the user.user_id().
     N/A credentials N/A CredentialsProperty N/A N/A N/A ndb None N/A CredentialsNDBModel N/A N/A ndb Model N/A N/A NDB Model for storage of OAuth 2.0 Credentials

        Since this model uses the same kind as CredentialsModel and has a
        property which can serialize and deserialize Credentials correctly, it
        can be used interchangeably with a CredentialsModel to access, insert
        and delete the same entities. This simply provides an NDB model for
        interacting with the same data the DB model interacts with.

        Storage of the model is keyed by the user.user_id().
         N/A credentials N/A CredentialsNDBProperty _get_kind N/A N/A cls N/A N/A N/A Return the kind name for this class. N/A CredentialsModel N/A classmethod N/A _build_state_value N/A N/A request_handler user N/A N/A N/A Composes the value for the 'state' parameter.

    Packs the current request URI and an XSRF token into an opaque string that
    can be passed to the authentication server via the 'state' parameter.

    Args:
        request_handler: webapp.RequestHandler, The request.
        user: google.appengine.api.users.User, The current user.

    Returns:
        The state value as a string.
     N/A uri N/A N/A request_handler request url N/A token N/A N/A xsrfutil generate_token N/A xsrf_secret_key N/A N/A user user_id action_id N/A str uri N/A N/A N/A uri : token N/A _parse_state_value N/A N/A state user N/A N/A N/A Parse the value of the 'state' parameter.

    Parses the value and validates the XSRF token in the state parameter.

    Args:
        state: string, The value of the state parameter.
        user: google.appengine.api.users.User, The current user.

    Raises:
        InvalidXsrfTokenError: if the XSRF token is invalid.

    Returns:
        The redirect URI.
     N/A N/A uri token N/A N/A state rsplit : 1 N/A N/A N/A N/A xsrfutil validate_token N/A xsrf_secret_key token N/A N/A user user_id action_id uri N/A N/A N/A InvalidXsrfTokenError N/A uri N/A OAuth2Decorator N/A object N/A N/A Utility for making OAuth 2.0 easier.

    Instantiate and then use with oauth_required or oauth_aware
    as decorators on webapp.RequestHandler methods.

    ::

        decorator = OAuth2Decorator(
            client_id='837...ent.com',
            client_secret='Qh...wwI',
            scope='https://www.googleapis.com/auth/plus')

        class MainHandler(webapp.RequestHandler):
            @decorator.oauth_required
            def get(self):
                http = decorator.http()
                # http is authorized with the user's Credentials and can be
                # used in API calls

     set_credentials N/A N/A self credentials N/A N/A N/A N/A N/A self _tls credentials credentials N/A get_credentials N/A N/A self N/A N/A N/A A thread local Credentials object.

        Returns:
            A client.Credentials object, or None if credentials hasn't been set
            in this thread yet, which may happen when calling has_credentials
            inside oauth_aware.
         N/A N/A getattr N/A self _tls credentials None N/A N/A credentials N/A property get_credentials set_credentials set_flow N/A N/A self flow N/A N/A N/A N/A N/A self _tls flow flow N/A get_flow N/A N/A self N/A N/A N/A A thread local Flow object.

        Returns:
            A credentials.Flow object, or None if the flow hasn't been set in
            this thread yet, which happens in _create_flow() since Flows are
            created lazily.
         N/A N/A getattr N/A self _tls flow None N/A N/A flow N/A property get_flow set_flow __init__ N/A N/A self client_id client_secret scope auth_uri token_uri revoke_uri user_agent message callback_path token_response_param _storage_class _credentials_class _credentials_property_name N/A GOOGLE_AUTH_URI GOOGLE_TOKEN_URI GOOGLE_REVOKE_URI None None /oauth2callback None StorageByKeyName CredentialsModel credentials kwargs N/A N/A Constructor for OAuth2Decorator

        Args:
            client_id: string, client identifier.
            client_secret: string client secret.
            scope: string or iterable of strings, scope(s) of the credentials
                   being requested.
            auth_uri: string, URI for authorization endpoint. For convenience
                      defaults to Google's endpoints but any OAuth 2.0 provider
                      can be used.
            token_uri: string, URI for token endpoint. For convenience defaults
                       to Google's endpoints but any OAuth 2.0 provider can be
                       used.
            revoke_uri: string, URI for revoke endpoint. For convenience
                        defaults to Google's endpoints but any OAuth 2.0
                        provider can be used.
            user_agent: string, User agent of your application, default to
                        None.
            message: Message to display if there are problems with the
                     OAuth 2.0 configuration. The message may contain HTML and
                     will be presented on the web interface for any method that
                     uses the decorator.
            callback_path: string, The absolute path to use as the callback
                           URI. Note that this must match up with the URI given
                           when registering the application in the APIs
                           Console.
            token_response_param: string. If provided, the full JSON response
                                  to the access token request will be encoded
                                  and included in this query parameter in the
                                  callback URI. This is useful with providers
                                  (e.g. wordpress.com) that include extra
                                  fields that the client may want.
            _storage_class: "Protected" keyword argument not typically provided
                            to this constructor. A storage class to aid in
                            storing a Credentials object for a user in the
                            datastore. Defaults to StorageByKeyName.
            _credentials_class: "Protected" keyword argument not typically
                                provided to this constructor. A db or ndb Model
                                class to hold credentials. Defaults to
                                CredentialsModel.
            _credentials_property_name: "Protected" keyword argument not
                                        typically provided to this constructor.
                                        A string indicating the name of the
                                        field on the _credentials_class where a
                                        Credentials object will be stored.
                                        Defaults to 'credentials'.
            **kwargs: dict, Keyword arguments are passed along as kwargs to
                      the OAuth2WebServerFlow constructor.
         N/A N/A self _tls N/A N/A threading local N/A N/A self flow None N/A N/A self credentials None N/A N/A self _client_id client_id N/A N/A self _client_secret client_secret N/A N/A self _scope N/A N/A util scopes_to_string scope N/A N/A self _auth_uri auth_uri N/A N/A self _token_uri token_uri N/A N/A self _revoke_uri revoke_uri N/A N/A self _user_agent user_agent N/A N/A self _kwargs kwargs N/A N/A self _message message N/A N/A self _in_error False N/A N/A self _callback_path callback_path N/A N/A self _token_response_param token_response_param N/A N/A self _storage_class _storage_class N/A N/A self _credentials_class _credentials_class N/A N/A self _credentials_property_name _credentials_property_name N/A N/A N/A util positional 4 _display_error_message N/A N/A self request_handler N/A N/A N/A N/A N/A N/A N/A request_handler response out write <html><body> N/A N/A N/A N/A N/A request_handler response out write N/A _safe_html N/A self _message N/A N/A N/A N/A N/A request_handler response out write </body></html> N/A oauth_required N/A N/A self method N/A N/A N/A Decorator that starts the OAuth 2.0 dance.

        Starts the OAuth dance for the logged in user if they haven't already
        granted access for this application.

        Args:
            method: callable, to be decorated method of a webapp.RequestHandler
                    instance.
         check_oauth N/A N/A request_handler N/A args kwargs N/A N/A N/A self _in_error N/A N/A N/A N/A self _display_error_message request_handler N/A N/A user N/A N/A users get_current_user N/A N/A user N/A N/A N/A N/A request_handler redirect N/A N/A users create_login_url N/A N/A request_handler request uri N/A N/A N/A N/A self _create_flow request_handler N/A N/A N/A N/A self flow params N/A state N/A _build_state_value request_handler user N/A N/A self credentials N/A N/A N/A N/A self _storage_class N/A self _credentials_class None N/A self _credentials_property_name user user get N/A N/A N/A N/A self has_credentials N/A N/A N/A N/A request_handler redirect N/A N/A self authorize_url N/A N/A N/A N/A N/A resp N/A method request_handler args kwargs N/A N/A N/A AccessTokenRefreshError N/A N/A N/A N/A request_handler redirect N/A N/A self authorize_url N/A N/A N/A self credentials None N/A resp N/A N/A check_oauth N/A _create_flow N/A N/A self request_handler N/A N/A N/A Create the Flow object.

        The Flow is calculated lazily since we don't know where this app is
        running until it receives a request, at which point redirect_uri can be
        calculated and then the Flow object can be constructed.

        Args:
            request_handler: webapp.RequestHandler, the request handler.
         N/A N/A N/A self flow None N/A N/A redirect_uri N/A N/A N/A request_handler request relative_url N/A self _callback_path N/A N/A self flow N/A OAuth2WebServerFlow N/A self _client_id N/A self _client_secret N/A self _scope redirect_uri redirect_uri user_agent N/A self _user_agent auth_uri N/A self _auth_uri token_uri N/A self _token_uri revoke_uri N/A self _revoke_uri N/A self _kwargs N/A oauth_aware N/A N/A self method N/A N/A N/A Decorator that sets up for OAuth 2.0 dance, but doesn't do it.

        Does all the setup for the OAuth dance, but doesn't initiate it.
        This decorator is useful if you want to create a page that knows
        whether or not the user has granted access to this application.
        From within a method decorated with @oauth_aware the has_credentials()
        and authorize_url() methods can be called.

        Args:
            method: callable, to be decorated method of a webapp.RequestHandler
                    instance.
         setup_oauth N/A N/A request_handler N/A args kwargs N/A N/A N/A self _in_error N/A N/A N/A N/A self _display_error_message request_handler N/A N/A user N/A N/A users get_current_user N/A N/A user N/A N/A N/A N/A request_handler redirect N/A N/A users create_login_url N/A N/A request_handler request uri N/A N/A N/A N/A self _create_flow request_handler N/A N/A N/A N/A self flow params N/A state N/A _build_state_value request_handler user N/A N/A self credentials N/A N/A N/A N/A self _storage_class N/A self _credentials_class None N/A self _credentials_property_name user user get N/A N/A N/A resp N/A method request_handler args kwargs N/A N/A N/A self credentials None N/A resp N/A N/A setup_oauth N/A has_credentials N/A N/A self N/A N/A N/A True if for the logged in user there are valid access Credentials.

        Must only be called from with a webapp.RequestHandler subclassed method
        that had been decorated with either @oauth_required or @oauth_aware.
         N/A N/A N/A N/A self credentials None N/A N/A N/A self credentials invalid N/A authorize_url N/A N/A self N/A N/A N/A Returns the URL to start the OAuth dance.

        Must only be called from with a webapp.RequestHandler subclassed method
        that had been decorated with either @oauth_required or @oauth_aware.
         N/A url N/A N/A N/A self flow step1_get_authorize_url N/A N/A str url N/A http N/A N/A self N/A args kwargs N/A N/A Returns an authorized http instance.

        Must only be called from within an @oauth_required decorated method, or
        from within an @oauth_aware decorated method where has_credentials()
        returns True.

        Args:
            *args: Positional arguments passed to httplib2.Http constructor.
            **kwargs: Positional arguments passed to httplib2.Http constructor.
         N/A N/A N/A N/A self credentials authorize N/A N/A httplib2 Http args kwargs N/A callback_path N/A N/A self N/A N/A N/A The absolute path where the callback will occur.

        Note this is the absolute path, not the absolute URI, that will be
        calculated by the decorator at runtime. See callback_handler() for how
        this should be used.

        Returns:
            The callback path as a string.
         N/A N/A self _callback_path N/A property callback_handler N/A N/A self N/A N/A N/A RequestHandler for the OAuth 2.0 redirect callback.

        Usage::

            app = webapp.WSGIApplication([
                ('/index', MyIndexHandler),
                ...,
                (decorator.callback_path, decorator.callback_handler())
            ])

        Returns:
            A webapp.RequestHandler that handles the redirect back from the
            server during the OAuth 2.0 dance.
         N/A decorator self OAuth2Handler N/A N/A webapp RequestHandler N/A N/A Handler for the redirect_uri of the OAuth 2.0 dance. get N/A N/A self N/A N/A N/A error N/A N/A N/A self request get error N/A error N/A N/A errormsg N/A N/A N/A self request get error_description error N/A N/A N/A N/A N/A self response out write N/A The authorization request failed: %s N/A _safe_html errormsg N/A N/A user N/A N/A users get_current_user N/A N/A N/A decorator _create_flow self N/A credentials N/A N/A N/A decorator flow step2_exchange N/A N/A self request params N/A N/A N/A N/A N/A decorator _storage_class N/A decorator _credentials_class None N/A decorator _credentials_property_name user user put credentials N/A redirect_uri N/A _parse_state_value N/A str N/A N/A N/A self request get state user N/A N/A N/A decorator _token_response_param N/A credentials token_response N/A N/A resp_json N/A N/A json dumps N/A credentials token_response N/A redirect_uri N/A N/A util _add_query_parameter redirect_uri N/A decorator _token_response_param resp_json N/A N/A N/A self redirect redirect_uri N/A login_required N/A N/A OAuth2Handler N/A callback_application N/A N/A self N/A N/A N/A WSGI application for handling the OAuth 2.0 redirect callback.

        If you need finer grained control use `callback_handler` which returns
        just the webapp.RequestHandler.

        Returns:
            A webapp.WSGIApplication that handles the redirect back from the
            server during the OAuth 2.0 dance.
         N/A N/A N/A webapp WSGIApplication N/A N/A N/A self callback_path N/A N/A self callback_handler N/A N/A OAuth2DecoratorFromClientSecrets N/A OAuth2Decorator N/A N/A An OAuth2Decorator that builds from a clientsecrets file.

    Uses a clientsecrets file as the source for all the information when
    constructing an OAuth2Decorator.

    ::

        decorator = OAuth2DecoratorFromClientSecrets(
            os.path.join(os.path.dirname(__file__), 'client_secrets.json')
            scope='https://www.googleapis.com/auth/plus')

        class MainHandler(webapp.RequestHandler):
            @decorator.oauth_required
            def get(self):
                http = decorator.http()
                # http is authorized with the user's Credentials and can be
                # used in API calls

     __init__ N/A N/A self filename scope message cache N/A None None kwargs N/A N/A Constructor

        Args:
            filename: string, File name of client secrets.
            scope: string or iterable 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.
            **kwargs: dict, Keyword arguments are passed along as kwargs to
                      the OAuth2WebServerFlow constructor.
         N/A N/A client_type client_info N/A N/A clientsecrets loadfile filename cache cache N/A N/A client_type N/A N/A clientsecrets TYPE_WEB N/A clientsecrets TYPE_INSTALLED N/A N/A N/A InvalidClientSecretsError OAuth2Decorator doesn't support this OAuth 2.0 flow. N/A constructor_kwargs N/A dict kwargs N/A N/A N/A constructor_kwargs update N/A auth_uri token_uri message N/A client_info N/A auth_uri N/A client_info N/A token_uri message N/A revoke_uri N/A N/A client_info get revoke_uri N/A N/A revoke_uri None N/A N/A N/A constructor_kwargs N/A revoke_uri revoke_uri N/A N/A N/A N/A super OAuth2DecoratorFromClientSecrets self __init__ N/A client_info N/A client_id N/A client_info N/A client_secret scope constructor_kwargs N/A N/A message None N/A N/A N/A self _message message N/A N/A N/A self _message Please configure your application for OAuth 2.0. N/A N/A N/A util positional 3 N/A oauth2decorator_from_clientsecrets N/A N/A filename scope message cache N/A None None N/A N/A 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
     N/A N/A OAuth2DecoratorFromClientSecrets filename scope message message cache cache N/A N/A N/A util positional 2