iqm.iqm_client.authentication.TokensFileReader#
- class iqm.iqm_client.authentication.TokensFileReader(tokens_file: str)#
Bases:
TokenProviderInterface
Reads token from a file
Methods
- Parameters:
tokens_file (str) –
- get_token() str #
Returns a valid access token.
- Raises:
ClientAuthenticationError – acquiring the token failed
- Return type:
- close() None #
Closes authentication session.
- Raises:
ClientAuthenticationError – closing the session failed
- Return type:
None