/httpie-negotiate

SPNEGO (GSS Negotiate) auth plugin for HTTPie

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

httpie-negotiate

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.

Note: Kerberos mutual authentication is set to REQUIRED by default.

$ 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