ClientAuthenticator#

class datareservoirio.authenticate.ClientAuthenticator(client_id, client_secret)[source]#

Authorized session where credentials are given as client_id and client_secret. When valid credentials are presented, the session is authenticated and persisted.

Extends BaseAuthSession.

Parameters:
  • client_id (str) – Unique identifier for the client (i.e. app/service etc.).

  • client_secret (str) – Secret/password for the client.

fetch_token()[source]#

Fetch new access and refresh token.

refresh_token(*args, **kwargs)[source]#

Refresh (expired) access token