def set_token_credentials(self, uuid, token): """ Store given credentials so we can sign the request later. :param uuid: The user's uuid. :type uuid: str :param token: The authentication token. :type token: str """ TokenBasedAuth.set_token_credentials(self, uuid, token)
def _sign_request(self, method, url_query, params): """ Return an authorization header to be included in the HTTP request. :param method: The HTTP method. :type method: str :param url_query: The URL query string. :type url_query: str :param params: A list with encoded query parameters. :type param: list :return: The Authorization header. :rtype: list of tuple """ return TokenBasedAuth._sign_request(self, method, url_query, params)