Skip to content

Commit

Permalink
Update README.rst - fix HTTPSignatureAuth params (#38)
Browse files Browse the repository at this point in the history
The `key` and `key_resolver` params are mutually exclusive.
  • Loading branch information
romanek-adam-b2c2 authored Apr 12, 2023
1 parent aff77a5 commit 6306c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6306c36

Please sign in to comment.