module documentation
Helpers for authentication using oauth2client or google-auth.
| Function | apply |
Undocumented |
| Function | authorized |
Returns an http client that is authorized with the given credentials. |
| Function | credentials |
Returns credentials loaded from a file. |
| Function | default |
Returns Application Default Credentials. |
| Function | get |
Undocumented |
| Function | is |
Undocumented |
| Function | refresh |
Undocumented |
| Function | with |
Scopes the credentials if necessary. |
| Variable | HAS |
Undocumented |
| Variable | HAS |
Undocumented |
Returns an http client that is authorized with the given credentials.
| Parameters | |
credentials:Union[google.auth.credentials.Credentials, oauth2client.client.Credentials] | The credentials to use. |
| Returns | |
Union[httplib2.Http, google_auth_httplib2.AuthorizedHttp] |
|
Scopes the credentials if necessary.
| Parameters | |
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. |