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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpx2_negotiate_sspi-2.0.1-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: httpx2_negotiate_sspi-2.0.1-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 10.8 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbb0a9d160c5d76df2fd08ed50a8bebaaffc26aef487dc3869322050dcca98ae
|
|
| MD5 |
5657127e0589c9626e0888b05adf34a9
|
|
| BLAKE2b-256 |
6c736b266324687c14c404e56e663c14194931ba1c85b20771b99fbbb1e7587d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx2_negotiate_sspi-2.0.1-cp314-cp314-win_amd64.whl -
Subject digest:
bbb0a9d160c5d76df2fd08ed50a8bebaaffc26aef487dc3869322050dcca98ae - Sigstore transparency entry: 2138903838
- Sigstore integration time:
-
Permalink:
achapkowski/httpx2_negotiate_sspi@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achapkowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file httpx2_negotiate_sspi-2.0.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: httpx2_negotiate_sspi-2.0.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 10.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93b028cb3bab574c2470f1904be339e291ceabca1cd00aba04cf6c83a075c4f
|
|
| MD5 |
835c193e776999199e7b5d67218c4fb5
|
|
| BLAKE2b-256 |
db8debcd8d298bb53df23d364b0f2e62d95e80c352b3cc45a02207da84fecb9d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx2_negotiate_sspi-2.0.1-cp313-cp313-win_amd64.whl -
Subject digest:
d93b028cb3bab574c2470f1904be339e291ceabca1cd00aba04cf6c83a075c4f - Sigstore transparency entry: 2138903867
- Sigstore integration time:
-
Permalink:
achapkowski/httpx2_negotiate_sspi@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achapkowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file httpx2_negotiate_sspi-2.0.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: httpx2_negotiate_sspi-2.0.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 10.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
564e9624a31de9b7b224df8d818a4d2e16cab9577e12900c2465fcd640dabb4a
|
|
| MD5 |
ace59a86595b70f7a6a1929718bfe58d
|
|
| BLAKE2b-256 |
aa990505c3e7e7904e1e8f635399e9e062ab85b38069ba68d9553f3d09fb6275
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx2_negotiate_sspi-2.0.1-cp312-cp312-win_amd64.whl -
Subject digest:
564e9624a31de9b7b224df8d818a4d2e16cab9577e12900c2465fcd640dabb4a - Sigstore transparency entry: 2138903853
- Sigstore integration time:
-
Permalink:
achapkowski/httpx2_negotiate_sspi@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achapkowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file httpx2_negotiate_sspi-2.0.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: httpx2_negotiate_sspi-2.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 10.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e55071cd2493a96c0a3ea830e1645c3eea1c9aa5de79fe6b0a54f31b2893891f
|
|
| MD5 |
9706090e867e168394499805dd8f1701
|
|
| BLAKE2b-256 |
c51852c475fea59365866af0678e2cebd714a1cd72e668da26adb8a9f10ac2a1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx2_negotiate_sspi-2.0.1-cp311-cp311-win_amd64.whl -
Subject digest:
e55071cd2493a96c0a3ea830e1645c3eea1c9aa5de79fe6b0a54f31b2893891f - Sigstore transparency entry: 2138903819
- Sigstore integration time:
-
Permalink:
achapkowski/httpx2_negotiate_sspi@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achapkowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file httpx2_negotiate_sspi-2.0.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: httpx2_negotiate_sspi-2.0.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 10.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b9a4c218293108fa75cdcb12d55135c087ec5b9f84c7d448352a5fe15688ce
|
|
| MD5 |
c9693579d165094e15f87bc4bd57d7d5
|
|
| BLAKE2b-256 |
d042e6be5b28fce8ee7a10c0ce3ee51210af0f13530a75dbb6e42128369f2ff1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx2_negotiate_sspi-2.0.1-cp310-cp310-win_amd64.whl -
Subject digest:
55b9a4c218293108fa75cdcb12d55135c087ec5b9f84c7d448352a5fe15688ce - Sigstore transparency entry: 2138903809
- Sigstore integration time:
-
Permalink:
achapkowski/httpx2_negotiate_sspi@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achapkowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b532e9b3bfee993601eb2ac6ad0695db2ee8a194 -
Trigger Event:
workflow_dispatch
-
Statement type: