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.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for httpie_kong_hmac-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e670e4ee8f17d6fe40beeadd51b423dbcbe5ea61da125a87d419bb02cf1f5a |
|
MD5 | 6b36ec9549dbf6830d34c89fd6f5e4ad |
|
BLAKE2b-256 | 2b2b27f006dc2075e1610c14bb17ad213b45f04a3528bf1175f59df415419e96 |