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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for httpie-visionect-auth-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3326a137f62a1d4811c85a8f16fbc07579012ba492f962ac2f48b363673d7b8f |
|
MD5 | 044d28905396c044d8792e694501b711 |
|
BLAKE2b-256 | 2205e77fdead51f0dd32395b8f5e318b98a8c159f81cf0122c7a009bd5aba2dd |