Kong Hmac plugin for HTTPie.
Project description
httpie-kong-hmac
HMAC auth plugin for HTTPie and Kong
It currently provides support for Kong Hmac
Installation
$ pip install httpie-kong-hmac
Usage
$ http --auth-type=kong-hmac --auth='client-key:client-secret' example.org
You can also use HTTPie sessions:
# Create session
$ http --session=logged-in --auth-type=kong-hmac --auth='client-key:client-secret' example.org
# Re-use auth
$ http --session=logged-in POST example.org hello=world
If you use requests:
from httpie_kong_hmac import KongHMAC
import requests
resp = requests.get('http://example.org',
auth=KongHMAC('client-key','client-secret'),
)
print(resp.status_code, resp.content)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpie-kong-hmac-0.0.6.tar.gz.
File metadata
- Download URL: httpie-kong-hmac-0.0.6.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2149122bddee2ec672f48d3b3ebb64c9720db608497b9c0f5f8d0458698abd26
|
|
| MD5 |
e4d29aea591692be6458d59499322e7e
|
|
| BLAKE2b-256 |
293080dc8e063352ae30a550966030ad381ee5073451e2d0792d55fa70f87791
|
File details
Details for the file httpie_kong_hmac-0.0.6-py3-none-any.whl.
File metadata
- Download URL: httpie_kong_hmac-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ad1c4a2cc931f54b06e131ebe687454e1f334c52389634ba4745f5686f8a3f
|
|
| MD5 |
0036b7cb3e6192a5516bf509984eb750
|
|
| BLAKE2b-256 |
bcf6f7a406cd9181cf38083a7ba8bce267bd0c82f72c7bbdab3769cf63cfd1fe
|