Skip to main content

Hush OAuth 2 plugin for the HTTPie command line HTTP client

Project description

httpie-hush

Hush OAuth 2 plugin for the HTTPie <https://github.com/jkbr/httpie> command line HTTP client.

Installation

    $ pipx install httpie
    $ pipx inject httpie httpie-hush

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

Setup

    $ httpie-hush-setup

Configure Hush's auth plugin with your creds (saved in ~/.httpie/config.json).
The credentials can be either a username/password or an API Key ID/API Key Secret.

Notes:

  • If username is not provided in conf file it will be searched at HTTPIE_HUSH_USERNAME envar
  • If password is not provided in conf file it will be searched at HTTPIE_HUSH_PASSWORD envar
  • If org shortname is not provided in conf file it will be searched at HTTPIE_HUSH_ORG envar
    • Only required for username login
    • API Keys use the API Key's org or the passes effective org
  • Manually inputted username/password supersedes conf file and environment variables

Usage

    $ http --auth-type=hush GET https://api.us.hush-security.com/v1/users

It's possible to use an effective org by passing the EORG envar:

    $ EORG=hush http --auth-type=hush GET https://api.us.hush-security.com/v1/users

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_hush-1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpie_hush-1.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file httpie_hush-1.2.tar.gz.

File metadata

  • Download URL: httpie_hush-1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-33-generic

File hashes

Hashes for httpie_hush-1.2.tar.gz
Algorithm Hash digest
SHA256 282a46a6d0bd18973289d273a69640dc1d820d798b2c5b0f0efeb8fd6295dd40
MD5 83fbd819b9d6157bfb780829b7909bdb
BLAKE2b-256 c198b49afb39b22a4b807387229eb0483c047e64bf5c8700d97d857b7385de68

See more details on using hashes here.

File details

Details for the file httpie_hush-1.2-py3-none-any.whl.

File metadata

  • Download URL: httpie_hush-1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-33-generic

File hashes

Hashes for httpie_hush-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b84ae3ec4d4ed1721a1ec2f41b45281493909cb8c38f6f1ebc105132b9a99151
MD5 0c929d991b3459eb4305c5bfc508c73e
BLAKE2b-256 bceb182f41da4d2230994d0c416fd5b7a1155bcca5e1f052c6b8d03afe70d465

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page