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.

Source Distribution

httpie-kong-hmac-0.0.5.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

httpie_kong_hmac-0.0.5-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page