Skip to main content

HTTPX Negotiate authentication using Windows SSPI.

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.1-cp314-cp314-win_amd64.whl (10.8 kB view details)

Uploaded CPython 3.14Windows x86-64

httpx2_negotiate_sspi-2.0.1-cp313-cp313-win_amd64.whl (10.9 kB view details)

Uploaded CPython 3.13Windows x86-64

httpx2_negotiate_sspi-2.0.1-cp312-cp312-win_amd64.whl (10.9 kB view details)

Uploaded CPython 3.12Windows x86-64

httpx2_negotiate_sspi-2.0.1-cp311-cp311-win_amd64.whl (10.9 kB view details)

Uploaded CPython 3.11Windows x86-64

httpx2_negotiate_sspi-2.0.1-cp310-cp310-win_amd64.whl (10.9 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file httpx2_negotiate_sspi-2.0.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bbb0a9d160c5d76df2fd08ed50a8bebaaffc26aef487dc3869322050dcca98ae
MD5 5657127e0589c9626e0888b05adf34a9
BLAKE2b-256 6c736b266324687c14c404e56e663c14194931ba1c85b20771b99fbbb1e7587d

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.1-cp314-cp314-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.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d93b028cb3bab574c2470f1904be339e291ceabca1cd00aba04cf6c83a075c4f
MD5 835c193e776999199e7b5d67218c4fb5
BLAKE2b-256 db8debcd8d298bb53df23d364b0f2e62d95e80c352b3cc45a02207da84fecb9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.1-cp313-cp313-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.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 564e9624a31de9b7b224df8d818a4d2e16cab9577e12900c2465fcd640dabb4a
MD5 ace59a86595b70f7a6a1929718bfe58d
BLAKE2b-256 aa990505c3e7e7904e1e8f635399e9e062ab85b38069ba68d9553f3d09fb6275

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.1-cp312-cp312-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.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e55071cd2493a96c0a3ea830e1645c3eea1c9aa5de79fe6b0a54f31b2893891f
MD5 9706090e867e168394499805dd8f1701
BLAKE2b-256 c51852c475fea59365866af0678e2cebd714a1cd72e668da26adb8a9f10ac2a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.1-cp311-cp311-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.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for httpx2_negotiate_sspi-2.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 55b9a4c218293108fa75cdcb12d55135c087ec5b9f84c7d448352a5fe15688ce
MD5 c9693579d165094e15f87bc4bd57d7d5
BLAKE2b-256 d042e6be5b28fce8ee7a10c0ce3ee51210af0f13530a75dbb6e42128369f2ff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx2_negotiate_sspi-2.0.1-cp310-cp310-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