TokensFileReader#

class TokensFileReader(tokens_file)#

Bases: TokenProviderInterface

Reads token from a file

Module: iqm.station_control.client.authentication

Methods

close

Close the authentication session.

get_token

Return a valid access token.

Parameters:

tokens_file (str)

get_token()#

Return a valid access token.

Raises:

ClientAuthenticationError – acquiring the token failed

Return type:

str

close()#

Close the authentication session.

Raises:

ClientAuthenticationError – closing the session failed

Return type:

None