SSPI authentication for httpx
Project description
httpx-negotiate-sspi
This is a port of requests-negotiate-sspi for httpx.
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.
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.
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 Distribution
Built Distribution
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 httpx_negotiate_sspi-0.28.1.tar.gz.
File metadata
- Download URL: httpx_negotiate_sspi-0.28.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.8.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
140bedfe08e1282974af28663bc02a205e4dc64e304df34aecc405be375ebda6
|
|
| MD5 |
d1cab552553dd9c5161c4afa7b0a66b9
|
|
| BLAKE2b-256 |
625577a03fd8ae106d193a1406eee64f58d539d05cad808d9529f7b9e30c918d
|
File details
Details for the file httpx_negotiate_sspi-0.28.1-py3-none-any.whl.
File metadata
- Download URL: httpx_negotiate_sspi-0.28.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.8.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
750c5f98501ed62b481704d6e7782bb26a00d3bce03cc1ff28f560b09b2df7a2
|
|
| MD5 |
a09133886613b6b1ca3be4f096783a2a
|
|
| BLAKE2b-256 |
067b0dc520bff51e77515d34660a696ab4dcfaf68997ce2fb75edf8dbcc32355
|