From d9091e090dbb7e2655f5fd7c6966b02ae01a9fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Segu=C3=AD=20Coll?= <62019037+Metarizard@users.noreply.github.com> Date: Wed, 4 May 2022 17:56:42 +0200 Subject: [PATCH] fix(readme): updated HTTPSignatureAuth arguments (#34) Changed `algorithm` to `signature_algorithm` while instantiating `HTTPSignatureAuth` objects in the README.rst file --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 74681da..d80de2e 100644 --- a/README.rst +++ b/README.rst @@ -92,7 +92,7 @@ constructor as bytes in the PEM format, or configure the key resolver as follows .. code-block:: python with open('key.pem', 'rb') as fh: - auth = HTTPSignatureAuth(algorithm=algorithms.RSA_V1_5_SHA256, + auth = HTTPSignatureAuth(signature_algorithm=algorithms.RSA_V1_5_SHA256, key=fh.read(), key_id=preshared_key_id) requests.get(url, auth=auth) @@ -104,7 +104,7 @@ constructor as bytes in the PEM format, or configure the key resolver as follows def resolve_private_key(self, key_id: str): return private_key_pem_bytes[key_id] - auth = HTTPSignatureAuth(algorithm=algorithms.RSA_V1_5_SHA256, + auth = HTTPSignatureAuth(signature_algorithm=algorithms.RSA_V1_5_SHA256, key=fh.read(), key_resolver=MyKeyResolver()) requests.get(url, auth=auth)