TokenProviderInterface#

Module: iqm.station_control.client.authentication

class TokenProviderInterface#

Bases: ABC

Interface to token provider

Methods

close

Close the authentication session.

get_token

Return a valid access token.

abstractmethod get_token()#

Return a valid access token.

Raises:

ClientAuthenticationError – acquiring the token failed

Return type:

str

abstractmethod close()#

Close the authentication session.

Raises:

ClientAuthenticationError – closing the session failed

Return type:

None

Inheritance

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