Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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 used to specify to OAuth scopes. A named Zign OAuth 2 token is created and used with the specified scopes:

$ http --auth-type=zign --auth=mytok:myscope https://example.org
$ http --auth-type=zign -a mytok:myscope1,scope2 https://example.org
$ http --auth-type=zign -a mytok: https://example.org  # use default scopes

You can list the created tokens using the Zign CLI:

$ zign li

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 :-)
Release History

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
httpie_zign-0.2-py3-none-any.whl (7.2 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Dec 14, 2015
httpie-zign-0.2.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Dec 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting