TokensFileReader#

Module: iqm.station_control.client.authentication

class TokensFileReader(tokens_file)#

Bases: TokenProviderInterface

Reads token from a file

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

Inheritance

Inheritance diagram of iqm.station_control.client.authentication.TokensFileReader