Skip to main content

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.

Files for httpie-kong-hmac, version 0.0.6
Filename, size & hash File type Python version Upload date
httpie_kong_hmac-0.0.6-py3-none-any.whl (3.9 kB) View hashes Wheel py3
httpie-kong-hmac-0.0.6.tar.gz (2.7 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page