Skip to main content

niquests-negotiate-sspi

This is a Python package that uses the Windows Security Support Provider Interface (SSPI) to authenticate with Kerberos/NTLM, using Negotiate and NTLM authentication schemes.

This module is a fork of requests-negotiate-sspi, which was originally written by brandond.

It's built on top of the niquests library, which is a Python HTTP library for Python that functions as a drop-in replacement for the requests library, with various features and improvements over the requests library.

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 niquests
from niquests_negotiate_sspi import HttpNegotiateAuth

r = niquests.get('https://your.url.here', auth=HttpNegotiateAuth())

Options

  • username: Username. Default: None

  • password: Password. Default: None

  • domain: NT Domain name. Default: None

  • 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.

Metadata

Release files for niquests-negotiate-sspi 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for niquests-negotiate-sspi 0.6.1
File Size Uploaded
niquests_negotiate_sspi-0.6.1.tar.gz 53.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for niquests-negotiate-sspi 0.6.1
File Interpreter ABI Platform
niquests_negotiate_sspi-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 68.4 kB

Release files / niquests_negotiate_sspi-0.6.1.tar.gz

Download URL niquests_negotiate_sspi-0.6.1.tar.gz
Size 53.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8eed35444f85d2b27616c25127b6e7ae0ecfadabe2754994d2feb5b0df218a36
BLAKE2b-256 checksum
How to use checksums
4e8ef6618f06bcb3c6967b0dd7ffa9a67b8b3a266d528d15d6e3239c5cd1cd44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.20

Release files / niquests_negotiate_sspi-0.6.1-py3-none-any.whl

Download URL niquests_negotiate_sspi-0.6.1-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e6f929ef74534f5e7d1c9551df36ac99e006bc772a33fc399f4e98404b1309c
BLAKE2b-256 checksum
How to use checksums
939245f2694dd5dceda9b907c6b00fca20ddeb49f9fdad14e3dd9315d4070c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.20

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page