Skip to main content

httpx-negotiate-sspi

image

This is a port of requests-negotiate-sspi for httpx/httpx2.

The implmentation stays close to the original, in an attempt to make any fixes or updates more straighforward.

The following is taken from the README of the original package with changes to reflect httpx.


An implementation of HTTP Negotiate authentication for Requests. This module provides single-sign-on using Kerberos or NTLM using the Windows SSPI interface.

This module supports Extended Protection for Authentication (aka Channel Binding Hash), which makes it usable for services that require it, including Active Directory Federation Services.

Installation

To install you must specify either httpx or httpx2. For example:

pip install httpx-negotiate-sspi[httpx]

or

pip install httpx-negotiate-sspi[httpx2]

Usage

import httpx
from httpx_negotiate_sspi import HttpSspiAuth

r = httpx.get('https://iis.contoso.com', auth=HttpSspiAuth())

Options

  • username: Username.
    Default: None

  • password: Password.
    Default: None

  • domain: NT Domain name.
    Default: '.' for local account.

  • service: Kerberos Service type for remote Service Principal Name.
    Default: 'HTTP'

  • host: Host name for Service Principal Name.
    Default: Extracted from request URI

  • delegate: Indicates that the user's credentials are to be delegated to the server. Default: False

If username and password are not specified, the user's default credentials are used. This allows for single-sign-on to domain resources if the user is currently logged on with a domain account.

Metadata

Release files for httpx-negotiate-sspi 0.28.2

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

Source distribution (sdist)

Source distribution for httpx-negotiate-sspi 0.28.2
File Size Uploaded
httpx_negotiate_sspi-0.28.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for httpx-negotiate-sspi 0.28.2
File Interpreter ABI Platform
httpx_negotiate_sspi-0.28.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / httpx_negotiate_sspi-0.28.2.tar.gz

Download URL httpx_negotiate_sspi-0.28.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d7bd8f0d8cb9922460cbac868dd087b65ed961711132b6ed3a9d9c61b115629a
BLAKE2b-256 checksum
How to use checksums
7ab5da7d0cf511559e5f6e0ac997758526d84b4736b6e4258df42594a7ea83c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / httpx_negotiate_sspi-0.28.2-py3-none-any.whl

Download URL httpx_negotiate_sspi-0.28.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b30eb41fd81c9db8b160c7cc1e1dbdbc00a78e0661e26d6aa868d248d8cdde66
BLAKE2b-256 checksum
How to use checksums
7eec04371f9fe1d5a92d220b8624ca23d88fb32e3167d26a4ea102986f452dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5
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