Skip to main content

HMAC Auth plugin for Joan Visionect and HTTPie.

Project description

HMAC for JoanAssistant auth plugin for HTTPie.

HTTP requests will be signed with a shared secret key using HMAC. Differs from AWS or other HMAC strings because: JoanAssistant The string to sign format is:

<Method>\n\n
<Content-Type>\n
<Date>\n
<URL>

Example String-to-sign

GET

application/json
Sun, 18 Jun 2017 11:48:26 GMT
/api/device/

Example Authorization Header with HMAC signature

Authorization: 1b9dbaf5b1183037:Mx0Qi57rqYIbc4gDiDKqYERK8Vmzdwhqk3S+OYoXRu0=

Installation

$ pip install httpie-visionect-auth

You should now see visionect under --auth-type in $ http --help output.

Usage

$ http -j --auth-type=visionect --auth='client:secret' server:8081/api/users/

Examples

To request status on all registered Joan Devices

$ http -j --auth-type=visionect --auth="client:secret" server:8081/api/devices/

License

Copyright (c) 2017 Pierre. Available under the MIT License.

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-visionect-auth-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

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