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
Release history Release notifications | RSS feed
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)
Built Distributions
Close
Hashes for httpie_signature-0.0.1-py3.9.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9f14b3d1c9f252cd501b6f0e1ef0977ed11124b8ebc8063b58cb47a2a6e1c0 |
|
MD5 | 7c34a16321e4f77866fe26292f6968ab |
|
BLAKE2b-256 | 0432f7de77ca37fe7899aebb6a9b19f3286dcabc8c28ebecbb7bbade83364a47 |
Close
Hashes for httpie_signature-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f575702e32c3b605b8f497975d726be54f1615c5e9fdb007008c35917e4bad |
|
MD5 | d0f63ad1cefa786fd424644d012e984b |
|
BLAKE2b-256 | a7d381b4a21254fbeeb880a6ce2def2cdd3421ccaca1aec39efa2d8bb1ab2110 |