httpie-hmac-auth
HTTP requests will be signed with a shared secret key using HMAC. The string to sign format is:
<Method>\n
<Content-MD5>\n
<Content-Type>\n
<Date>\n
<URL>
Example String-to-sign
POST
vVqHE1k/uBRCoWe0FAh95g==
application/json
Tue, 12 Jan 2016 14:57:28 GMT
/api/v1/avatars
Example Authorization Header with HMAC signature
Authorization: HMAC XH+v0qhV4i/89y/DT2OOJx9Kjf3f/0j+w2aGZk625nU=
Installation
$ pip install httpie-hmac-auth
You should now see hmac under --auth-type in $ http --help output.
Usage
$ http --auth-type=hmac --auth='client:secret' example.org
Examples
To authenticate a client request when an access key is required by the server to lookup the shared secret:
$ http --auth-type=hmac --auth="client:secret" example.org
To authenticate a client request when there is no requirement for a client to supply an access key:
$ http --auth-type=hmac --auth=":secret" example.org
License
Copyright (c) 2016 The Guardian. Available under the MIT License.
Metadata
Release files for httpie-hmac-auth 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| httpie-hmac-auth-0.2.3.tar.gz | 2.8 kB | Without provenance | Details for httpie-hmac-auth-0.2.3.tar.gz |
Release files / httpie-hmac-auth-0.2.3.tar.gz
| Download URL | httpie-hmac-auth-0.2.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8912ddf803c5d66aa4409d034f592f268f612c7d31451bde54c05edfd82e7b9
|
|
BLAKE2b-256 checksum How to use checksums |
b1b7c4877e0c5b565166bc5b9df5dd1552aa2ba43983b1c9176fbbd8d9528b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for httpie-hmac-auth 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.