SPNEGO (GSS Negotiate) auth plugin for HTTPie.
Project description
SPNEGO (GSS Negotiate) auth plugin for HTTPie, based on Jakub’s httpie-ntlm example.
Installation
$ pip install httpie-negotiate
You should now see negotiate under --auth-type in $ http --help output.
Usage
You need to have a valid Kerberos principal, run kinit first if necessary.
$ http --auth-type=negotiate --auth : https://example.org
Kerberos mutual authentication is REQUIRED by default and is recommended. If you strictly require mutual authentication to be OPTIONAL or DISBALED, then you can use the HTTPIE_KERBEROS_MUTUAL environment variable.
$ HTTPIE_KERBEROS_MUTUAL=OPTIONAL http --auth-type=negotiate --auth : https://example.org
$ HTTPIE_KERBEORS_MUTUAL=DISABLED http --auth-type=negotiate --auth : https://example.org
You can also use HTTPie sessions:
# Create session
$ http --session=logged-in --auth-type=negotiate --auth : https://example.org
# Re-use auth
$ http --session=logged-in POST https://example.org hello=world
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
File details
Details for the file httpie-negotiate-1.0.1.tar.gz
.
File metadata
- Download URL: httpie-negotiate-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.4.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
81fa819bed51e12e42da7615574fa8e2e7a6cfc610fac585ddd30ffd46b20f0e
|
|
MD5 |
71a5ae1540603e9e9c9d57ff441513ed
|
|
BLAKE2b-256 |
b8fa6c11a49beb0cdd2910f563dd69078e9c6e6bde4920bf8f227c800f2de941
|