iqm.iqm_client.authentication.ExternalToken

iqm.iqm_client.authentication.ExternalToken#

class iqm.iqm_client.authentication.ExternalToken(token)#

Bases: TokenProviderInterface

Holds an external token

Methods

close()

Closes authentication session.

get_token()

Returns a valid access token.

Parameters:

token (str) –

get_token()#

Returns a valid access token.

Raises:

ClientAuthenticationError – acquiring the token failed

Return type:

str

close()#

Closes authentication session.

Raises:

ClientAuthenticationError – closing the session failed

Return type:

None