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
Hashes for httpx_negotiate_sspi-0.27.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f5f778c132a1294badc541aeb950a48adf0a1e17001a3a42d4bd5093ecb6a6 |
|
MD5 | 014ec2caa71165580ad31a5ef20f5c35 |
|
BLAKE2b-256 | 7f6799d38ec524669470909e7a58013367023bdb79a0781a76c013bcdec7ad04 |
Hashes for httpx_negotiate_sspi-0.27.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a86f5bacd7377186a60902afc7775c6d608b941c99f3de148272b8cd389d75 |
|
MD5 | c82f313e2f0eacb765646a3fea4d411f |
|
BLAKE2b-256 | 22726c24f5b386ac16231c4368a27aee09df61228054d9c92d4c3b48d84ad014 |