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
httpie-kong-hmac-0.0.4.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for httpie_kong_hmac-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9852a755ecdfe78c8d01464e6bd2f08a61dc4bb25fc295cbe5f06d370a4f7b |
|
MD5 | 1c3ad5d4e4c80e0608555c403e0320da |
|
BLAKE2b-256 | a7285367358a70e3ecdfed829376e51faaa60fba72546cad9eb21cbcd9350e97 |