Skip to main content

Zign OAuth 2 plugin for HTTPie.

Project description

STUPS Zign OAuth 2 plugin for the HTTPie command line HTTP client.

Zign is STUPS’ command line client to generate OAuth2 access tokens.

Installation

$ pip install httpie-zign

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

Usage

This plugin takes the Zign token name as the --auth username. The --auth password is completely ignored. You have to generate the named Zign OAuth 2 token before using HTTPie:

$ zign token -n mytok # generate named OAuth token "mytok"
$ http --auth-type=zign --auth=mytok: https://example.org
$ http --auth-type=zign -a mytok: https://example.org

You can set the default --auth-type=zign option in the ~/.httpie/config.json file for convenience:

$ echo '{"default_options": ["--auth-type=zign"]}' > ~/.httpie/config.json
$ http -a mytok: https://example.org # that's much shorter now :-)

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-zign-0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

httpie_zign-0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file httpie-zign-0.1.tar.gz.

File metadata

  • Download URL: httpie-zign-0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for httpie-zign-0.1.tar.gz
Algorithm Hash digest
SHA256 4c01b25074cc8015c24a43dfaaa256f259bca89f0ed50cadc05b7edc9d11f9c0
MD5 019a208a02602da88b7d4cc4b3253862
BLAKE2b-256 120a02d8780591ae8a71c182b540c6d77d2301d2a7bccbfd7fd31f2d844316e8

See more details on using hashes here.

File details

Details for the file httpie_zign-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for httpie_zign-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3979e47974c74b8a2eedaf6fc11f0fbe297a078cf1a381ffe1403badb06be427
MD5 dfc3852317b972be57d176acb729eeb5
BLAKE2b-256 98ccd2213a6071f4505f12f5723e61630c7b1fa18771f6f1ed88d9846447de8c

See more details on using hashes here.

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