sdk.lusid.extensions.refreshing_token.RefreshingToken
- class RefreshingToken(api_configuration, expiry_offset=60, id_provider_response_handler=None)[source]
Implementation of UserString that will automatically refresh the token value upon expiry
- Parameters:
api_configuration (ApiConfiguration) – The api configuration with all required values
expiry_offset (int) – number of seconds before token expiry to refresh the token
id_provider_response_handler (callable) – A handler taking the Requests.Response from the identity provider
before it is consumed by the RefreshingToken, mutation of the Response is possible with this handler
Methods
capitalizecasefoldcentercountencodeendswithexpandtabsfindformatformat_mapRetrieves an access token from the identity provider using the credentials in the provided configuration
Retrieves an access token from the identity provider using the refresh token
indexRaises ValueError if the value is not present.
isalnumisalphaisasciiisdecimalisdigitisidentifierislowerisnumericisprintableisspaceistitleisupperjoinljustlowerlstripmaketransReturn a translation table usable for str.translate().
partitionremoveprefixremovesuffixreplacerfindrindexrjustrpartitionrsplitrstripsplitsplitlinesstartswithstripswapcasetitletranslateUpdates the token data from a response from the identity provider
upperzfill- get_access_token()[source]
Retrieves an access token from the identity provider using the credentials in the provided configuration
- Returns:
The retrieved access token