Skip to main content
info

Base adapter class.

StorageAdapter#

A storage adapter abstract base class.

fetch_credential#

@abstractmethodfetch_credential(credential=None, profile=None)

Fetch credential from store.

Arguments:

  • credential str - Credential to fetch.
  • profile str - Credentials profile. Defaults to 'default'.

init_store#

@abstractmethodinit_store()

Initialize credentials store.

remove_profile#

@abstractmethodremove_profile(profile=None)

Remove profile from store.

Arguments:

  • profile str - Credentials profile to remove.

write_credentials#

@abstractmethodwrite_credentials(credentials=None, profile=None, cache_token=None)

Write credentials.

info

Write credentials to store.

Arguments:

  • cache_token bool - If True, stores access_token in token store. Defaults to True.
  • credentials class - Read-only credentials.
  • profile str - Credentials profile. Defaults to 'default'.