Skip to main content

Http Signature Authentication plugin for HTTPie.

Project description

An Http Signature Authentication plugin for HTTPie <https://httpie.io> .

HTTP Signatures describe a method of creating, encoding and verifying a signature within an HTTP request Http Signature Authentication is described in the following working document https://tools.ietf.org/id/draft-cavage-http-signatures-12.html

How to install

$ pip install httpie-signature

How to use

$ https --auth-type=signature https://apitest.cybersource.com/pts/v2/payments 'v-c-merchant-id: test'

~/.httpsigrc file

Format:

[URL]
key = <key>
secret = <secret>
headers = <String value of headers used in signatur>

Sample ~/.httpsigrc file

[mywebsite.com]
key = e3e0e662-0187-49d3-b4ba-09dcf4649a91
secret = EcLO2Ybb7ChSLeQsAIPqEBnJpAm1Y3ypw2b4n4RqWnw=
algorithm = HmacSHA256
headers = host date (request-target) digest

[anotherwebsite.com]
key = 51da5b74-34b9-4dc0-9330-3fc4e9fbac03
secret = ASDOASFKAFasd3rtsfasfWZFAFDWTRWFSGDFSDsds35=
algorithm = HmacSHA256
headers = host date (request-target) digest

If your request does not contain a body digest will automatically be removed from the header list.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpie-signature-0.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distributions

httpie_signature-0.0.1-py3.9.egg (3.2 kB view hashes)

Uploaded Source

httpie_signature-0.0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page