Skip to main content

HTTPX Negotiate authentication using Windows SSPI.

Reason this release was yanked:

builds not labelled correctly.

Project description

httpx2-negotiate-sspi

An implementation of HTTP Negotiate authentication for httpx2. 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.

Usage

import httpx2
from httpx2_negotiate_sspi import HttpNegotiateAuth

with httpx2.Client(auth=HttpNegotiateAuth()) as client:
  response = client.get('https://iis.contoso.com')

Async clients use the same auth object:

import httpx2
from httpx2_negotiate_sspi import HttpNegotiateAuth

async with httpx2.AsyncClient(auth=HttpNegotiateAuth()) as client:
  response = await client.get('https://iis.contoso.com')

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

httpx2_negotiate_sspi-2.0.0-py314-none-win_amd64.whl (10.7 kB view details)

Uploaded Python 3.14Windows x86-64

httpx2_negotiate_sspi-2.0.0-py313-none-win_amd64.whl (10.8 kB view details)

Uploaded Python 3.13Windows x86-64

httpx2_negotiate_sspi-2.0.0-py312-none-win_amd64.whl (10.8 kB view details)

Uploaded Python 3.12Windows x86-64

httpx2_negotiate_sspi-2.0.0-py311-none-win_amd64.whl (10.8 kB view details)

Uploaded Python 3.11Windows x86-64

httpx2_negotiate_sspi-2.0.0-py310-none-win_amd64.whl (10.8 kB view details)

Uploaded Python 3.10Windows x86-64

File details

Details for the file httpx2_negotiate_sspi-2.0.0-py314-none-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.0-py314-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a29644f9757d3cd77d7878fd6a0691d9795ba88844ca75b1ba8a4265bb82f43
MD5 6c0e89a839cef8a7c8b2437558f3f7d6
BLAKE2b-256 2f7aadac020b72a2b2c312a01eee593b77589ab3996d3f8b90a192010343460d

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.0-py314-none-win_amd64.whl:

Publisher: publish.yml on achapkowski/httpx2_negotiate_sspi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file httpx2_negotiate_sspi-2.0.0-py313-none-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.0-py313-none-win_amd64.whl
Algorithm Hash digest
SHA256 1116f36cb6092cc5ed4fc724a2e72f91786ea3cb1c8bfba1513954700c8fc913
MD5 f2df0d34483982e12728e4a905697f94
BLAKE2b-256 8707dc90bb8bc6cbbdaf6d7178090ba6b7114888748f974e85c106a602a88ee9

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.0-py313-none-win_amd64.whl:

Publisher: publish.yml on achapkowski/httpx2_negotiate_sspi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file httpx2_negotiate_sspi-2.0.0-py312-none-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.0-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 7d10147e0ef5abe7f116024ef560ee0d3eccc90b50a38c138b800e3afa2b7806
MD5 0f5480c3e1d75ff3ed3a3151d68b8b80
BLAKE2b-256 8449c677e900405490cc630462b9dad3e37010b375a98a24f9213c3491db9d79

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.0-py312-none-win_amd64.whl:

Publisher: publish.yml on achapkowski/httpx2_negotiate_sspi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file httpx2_negotiate_sspi-2.0.0-py311-none-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.0-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 40293ca21ad9c9e6b5b0a02b3028bc1230ea4e30cf2085bf75842d0f42f2500b
MD5 c9a7a7827fa190fa80b2e88bb7118d45
BLAKE2b-256 acef470708cec79f9f4a78e4c2bbaa55d258d320a7ee7eb2724e487edbb5214b

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.0-py311-none-win_amd64.whl:

Publisher: publish.yml on achapkowski/httpx2_negotiate_sspi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file httpx2_negotiate_sspi-2.0.0-py310-none-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.0-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 673aade0b45dbb8cdea0d51da2c29646ad99485ad9a2772244fc17651620b8f0
MD5 321711842887d8e9d55e9b370b8cffcc
BLAKE2b-256 397c02a22c91680a26f31b8835e9470880d6a42d17526626e9ffed18c080c760

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.0-py310-none-win_amd64.whl:

Publisher: publish.yml on achapkowski/httpx2_negotiate_sspi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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