iqm.iqm_client.authentication.TokenClient

iqm.iqm_client.authentication.TokenClient#

class iqm.iqm_client.authentication.TokenClient(auth_server_url, realm, username, password)#

Bases: TokenProviderInterface

Requests new token from an authentication server

Methods

close()

Close authentication session

get_token()

Get new access token and refresh token from the server

Parameters:
  • auth_server_url (str) –

  • realm (str) –

  • username (str) –

  • password (str) –

get_token()#

Get new access token and refresh token from the server

Return type:

str

close()#

Close authentication session

Return type:

None