From 6306c36c1d17527792da98c3f06b7b90b4d0559b Mon Sep 17 00:00:00 2001 From: Adam Romanek <108475356+romanek-adam-b2c2@users.noreply.github.com> Date: Wed, 12 Apr 2023 03:58:51 +0200 Subject: [PATCH] Update README.rst - fix HTTPSignatureAuth params (#38) The `key` and `key_resolver` params are mutually exclusive. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index d80de2e..fe4dcb2 100644 --- a/README.rst +++ b/README.rst @@ -105,8 +105,8 @@ constructor as bytes in the PEM format, or configure the key resolver as follows return private_key_pem_bytes[key_id] auth = HTTPSignatureAuth(signature_algorithm=algorithms.RSA_V1_5_SHA256, - key=fh.read(), - key_resolver=MyKeyResolver()) + key_resolver=MyKeyResolver(), + key_id="my-key-id") requests.get(url, auth=auth) Digest algorithms