httpie-kong-hmac

Kong Hmac plugin for HTTPie.


License
MIT
Install
pip install httpie-kong-hmac==0.0.6

Documentation

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)