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.

Files for httpie-visionect-auth, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size httpie-visionect-auth-0.0.1.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