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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

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

Uploaded Python 3

File details

Details for the file httpie-signature-0.0.1.tar.gz.

File metadata

  • Download URL: httpie-signature-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for httpie-signature-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ba9e102c1a9ca9a7ea1f40d886f68540b97dfac5736d8473239a23dd528314da
MD5 d6f72c2cc80d56e9b85aac92863e66e5
BLAKE2b-256 0747453e159047ffdb27e99355fa051e67560885684eef0387f454cc7aa8db69

See more details on using hashes here.

File details

Details for the file httpie_signature-0.0.1-py3.9.egg.

File metadata

  • Download URL: httpie_signature-0.0.1-py3.9.egg
  • Upload date:
  • Size: 3.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for httpie_signature-0.0.1-py3.9.egg
Algorithm Hash digest
SHA256 cd9f14b3d1c9f252cd501b6f0e1ef0977ed11124b8ebc8063b58cb47a2a6e1c0
MD5 7c34a16321e4f77866fe26292f6968ab
BLAKE2b-256 0432f7de77ca37fe7899aebb6a9b19f3286dcabc8c28ebecbb7bbade83364a47

See more details on using hashes here.

File details

Details for the file httpie_signature-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for httpie_signature-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62f575702e32c3b605b8f497975d726be54f1615c5e9fdb007008c35917e4bad
MD5 d0f63ad1cefa786fd424644d012e984b
BLAKE2b-256 a7d381b4a21254fbeeb880a6ce2def2cdd3421ccaca1aec39efa2d8bb1ab2110

See more details on using hashes here.

Supported by

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