HeaderSigner has a useful parameter called sign_header which allows to specify the header to add the signature to. It defaults to authorization but some services require Signature: .... Unfortunately this is not available for the Python requests, because HTTPSignatureAuth automatically initializes self.header_signer with the default value of authorization and it cannot be changed.
HeaderSigner
has a useful parameter calledsign_header
which allows to specify the header to add the signature to. It defaults toauthorization
but some services requireSignature: ...
. Unfortunately this is not available for the Pythonrequests
, because HTTPSignatureAuth automatically initializesself.header_signer
with the default value ofauthorization
and it cannot be changed.