Skip to main content

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.

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 details)

Uploaded Source

File details

Details for the file httpie-visionect-auth-0.0.1.tar.gz.

File metadata

File hashes

Hashes for httpie-visionect-auth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3326a137f62a1d4811c85a8f16fbc07579012ba492f962ac2f48b363673d7b8f
MD5 044d28905396c044d8792e694501b711
BLAKE2b-256 2205e77fdead51f0dd32395b8f5e318b98a8c159f81cf0122c7a009bd5aba2dd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page