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.

Download files

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

Source Distribution

httpx_negotiate_sspi-0.28.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpx_negotiate_sspi-0.28.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file httpx_negotiate_sspi-0.28.2.tar.gz.

File metadata

  • Download URL: httpx_negotiate_sspi-0.28.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for httpx_negotiate_sspi-0.28.2.tar.gz
Algorithm Hash digest
SHA256 d7bd8f0d8cb9922460cbac868dd087b65ed961711132b6ed3a9d9c61b115629a
MD5 647d6ce803497564c7514ac91e0df0ac
BLAKE2b-256 7ab5da7d0cf511559e5f6e0ac997758526d84b4736b6e4258df42594a7ea83c7

See more details on using hashes here.

File details

Details for the file httpx_negotiate_sspi-0.28.2-py3-none-any.whl.

File metadata

File hashes

Hashes for httpx_negotiate_sspi-0.28.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b30eb41fd81c9db8b160c7cc1e1dbdbc00a78e0661e26d6aa868d248d8cdde66
MD5 1519a35eb769e10b5d7ee192ad6b8d50
BLAKE2b-256 7eec04371f9fe1d5a92d220b8624ca23d88fb32e3167d26a4ea102986f452dfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page