arthurai.client.auth.AuthRefresher#

class arthurai.client.auth.AuthRefresher(url, login, password, verify_ssl)#

Bases: object

Methods

refresh

Authorization header update function for an HTTPClient

Attributes

ALGORITHMS

AUTH_KEY

MINS_BEFORE_EXPIRY_TO_REFRESH

refresh()#

Authorization header update function for an HTTPClient

Fetches a new session token and returns the new token, and how long to wait before refreshing it (by calling this method again) :rtype: Tuple[Dict[str, str], timedelta] :return: Headers to update (Authorization), and time to wait before refreshing again