iqm.iqm_client.authentication.TokenProviderInterface

iqm.iqm_client.authentication.TokenProviderInterface#

class iqm.iqm_client.authentication.TokenProviderInterface#

Bases: ABC

Interface to token provider

Methods

close()

Closes authentication session.

get_token()

Returns a valid access token.

abstract get_token() str#

Returns a valid access token.

Raises:

ClientAuthenticationError – acquiring the token failed

Return type:

str

abstract close() None#

Closes authentication session.

Raises:

ClientAuthenticationError – closing the session failed

Return type:

None