Skip to main content

Negotiate authentication for the requests HTTP client library

Project description

# requests-negotiate

An implementation of HTTP Negotiate authentication ([RFC 4559]( for [requests](

Negotiate authentication is commonly used to provide Kerberos authentication through GSSAPI.

## Usage

Here’s a trivial example:

import requests import requests_negotiate

auth = requests_negotiate.HTTPNegotiateAuth() response = requests.get(‘’, auth=auth)

You’ll need a valid Kerberos ticket - acquired using e.g. kinit - for this to work.

### Options

You can instantiate an HTTPNegotiateAuth with the following optional parameters:

  • service - A Kerberos principal is generally composed of a service name (e.g. ‘HTTP’) and a hostname, separated by a slash (‘/’). This lets you override the default service of 'HTTP'.
  • service_name - Overrides the full service name (e.g. 'HTTP/')
  • negotiate_client_name - Explicitly specify which client principal to authenticate as. Particularly useful when you’re using a credential cache collection.

Project details

Download files

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

Files for requests-negotiate, version 1.5
Filename, size File type Python version Upload date Hashes
Filename, size requests-negotiate-1.5.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page