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 File type Python version Upload date Hashes
Filename, size httpie_kong_hmac-0.0.6-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size httpie-kong-hmac-0.0.6.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page