Skip to main content

GSSAPI authentication plug-in for HTTPie

Project description

GSSAPI authentication plug-in for HTTPie.

This plug-in uses the requests-gssapi library, which is a more-modern replacement of the old requests-kerberos library.

Installation

$ pip install httpie-gssapi

This will add the gssapi authentication method under --auth-type in the $ http --help output.

Usage

Ensure you have a valid Kerberos token by running kinit.

$ http --auth-type=gssapi https://example.org

Note that supplying authentication credentials is not necessary, meaning the following two commands are equivalent:

$ http --auth-type=gssapi https://example.org
$ http --auth-type=gssapi --auth : https://example.org

Configuration Options

The following environment variables can be set to modify the GSSAPI authentication behavior:

  • HTTPIE_GSSAPI_MUTUAL_AUTH (default: required): determines whether mutual authentication from the server should be required. For more information, see Mutual Authentication. Possible values are: required, optional, disabled.

  • HTTPIE_GSSAPI_OPPORTUNISTIC_AUTH (default: no): enables or disables preemptively initiating the GSSAPI exchange. For more information, see Opportunistic Authentication. Possible values are: yes, true, 1; all other values default to no.

  • HTTPIE_GSSAPI_DELEGATE (default: no): enables or disables credential delegation. For more information, see Delegation. Possible values are: yes, true, 1; all other values default to no.

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-gssapi-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

httpie_gssapi-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file httpie-gssapi-1.0.0.tar.gz.

File metadata

  • Download URL: httpie-gssapi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for httpie-gssapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0474a023c92f155198b1cc447a5248ef1f06b63b90fe4099572cd3008a19cdd8
MD5 8b0ed0107f809d95bfd869f092b99c38
BLAKE2b-256 e8eb4031a81028be7c7a33e4d5ee829c203c337d3c92737a89a2a19cea7707f2

See more details on using hashes here.

File details

Details for the file httpie_gssapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: httpie_gssapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for httpie_gssapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 629935e01d3c51415c2a4777736963278380ff218588cbedf4058bb13a9444ae
MD5 522176a84066f4856aa8dba9e010f814
BLAKE2b-256 5fc78d70546f0ea398cecf9fc54d4a223d45707d730a2ce2c1a2a2752f1fe9d4

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