Home | Trees | Indices | Help |
---|
|
Helpers for authentication using oauth2client or google-auth.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
HAS_GOOGLE_AUTH = False
|
|||
google_auth_httplib2 = None
|
|||
HAS_OAUTH2CLIENT = False
|
|||
__package__ =
|
|
Scopes the credentials if necessary. Args: credentials (Union[ google.auth.credentials.Credentials, oauth2client.client.Credentials]): The credentials to scope. scopes (Sequence[str]): The list of scopes. Returns: Union[google.auth.credentials.Credentials, oauth2client.client.Credentials]: The scoped credentials. |
Returns an http client that is authorized with the given credentials. Args: credentials (Union[ google.auth.credentials.Credentials, oauth2client.client.Credentials]): The credentials to use. Returns: Union[httplib2.Http, google_auth_httplib2.AuthorizedHttp]: An authorized http client. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Oct 2 20:46:21 2020 | http://epydoc.sourceforge.net |