Skip to main content

This package allows for Single-Sign On HTTP Negotiate authentication using the niquests library on Windows.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niquests_negotiate_sspi-0.6.1.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niquests_negotiate_sspi-0.6.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file niquests_negotiate_sspi-0.6.1.tar.gz.

File metadata

File hashes

Hashes for niquests_negotiate_sspi-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8eed35444f85d2b27616c25127b6e7ae0ecfadabe2754994d2feb5b0df218a36
MD5 774b708d84f1db3b023c27e2dc028f6d
BLAKE2b-256 4e8ef6618f06bcb3c6967b0dd7ffa9a67b8b3a266d528d15d6e3239c5cd1cd44

See more details on using hashes here.

File details

Details for the file niquests_negotiate_sspi-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for niquests_negotiate_sspi-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6f929ef74534f5e7d1c9551df36ac99e006bc772a33fc399f4e98404b1309c
MD5 7aa8b0bc414b81687b7857c6c47716fa
BLAKE2b-256 939245f2694dd5dceda9b907c6b00fca20ddeb49f9fdad14e3dd9315d4070c15

See more details on using hashes here.

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