oauth2client.file module¶
Utilities for OAuth.
Utilities for making it easier to work with OAuth 2.0 credentials.
-
exception
oauth2client.file.
CredentialsFileSymbolicLinkError
[source]¶ Bases:
exceptions.Exception
Credentials files must not be symbolic links.
-
class
oauth2client.file.
Storage
(filename)[source]¶ Bases:
oauth2client.client.Storage
Store and retrieve a single credential to and from a file.
-
acquire_lock
()[source]¶ Acquires any lock necessary to access this Storage.
This lock is not reentrant.
-
locked_delete
()[source]¶ Delete Credentials file.
Parameters: credentials – Credentials, the credentials to store.
-
locked_get
()[source]¶ Retrieve Credential from file.
Returns: oauth2client.client.Credentials Raises: CredentialsFileSymbolicLinkError if the file is a symbolic link.
-