Skip to main content

# requests-negotiate

An implementation of HTTP Negotiate authentication ([RFC 4559](http://tools.ietf.org/html/rfc4559)) for [requests](http://docs.python-requests.org/en/latest/).

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(’https://example.org/’, 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/example.org')

  • negotiate_client_name - Explicitly specify which client principal to authenticate as. Particularly useful when you’re using a credential cache collection.

Metadata

Release files for requests-negotiate 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-negotiate 1.5
File Size Uploaded
requests-negotiate-1.5.tar.gz 2.7 kB Details

Release files / requests-negotiate-1.5.tar.gz

Download URL requests-negotiate-1.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ab5cc1aae90f46cc21a27a4050ef249b3325bef2a93f3b30dd4e4c18bb9d08
BLAKE2b-256 checksum
How to use checksums
a242fde98cd3e54e6118d687cfb90e22a29954542eee2490ea062ea99aeb048e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.5 This release

1 release file

1.4.1

1 release file

1.4

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page