Skip to main content

SSPI authentication for httpx

Project description

httpx-negotiate-sspi

image

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


Download files

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

Source Distribution

httpx_negotiate_sspi-0.26.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

httpx_negotiate_sspi-0.26.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file httpx_negotiate_sspi-0.26.0.tar.gz.

File metadata

  • Download URL: httpx_negotiate_sspi-0.26.0.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

Hashes for httpx_negotiate_sspi-0.26.0.tar.gz
Algorithm Hash digest
SHA256 cbf5ae118f33c92986eedffe18913e46252788ae97cd43f75f8efbad5725d0f4
MD5 b00ff64ec8b3b8ae7f87cbd1efbb5fee
BLAKE2b-256 da50db883e803a3c294bee60383dadbe6e468ba89f6d54c9db8735f92815d6b0

See more details on using hashes here.

File details

Details for the file httpx_negotiate_sspi-0.26.0-py3-none-any.whl.

File metadata

File hashes

Hashes for httpx_negotiate_sspi-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f697114f8d6fe6c046ef537981bec60ff3a2a991e3d287799f9893c7b1980564
MD5 09c5f9e916d6e1c1f1e5cd1f19a7423d
BLAKE2b-256 8823034aceb100e67dc6bda1ab65030d8b4bd1aeff782089cc6569a1d5097b76

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