Update README.rst - fix HTTPSignatureAuth params (#38)

The `key` and `key_resolver` params are mutually exclusive.
develop
Adam Romanek 2023-04-12 03:58:51 +02:00 committed by GitHub
parent aff77a5db3
commit 6306c36c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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