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.1a1.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.1a1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file httpx_negotiate_sspi-0.26.1a1.tar.gz.

File metadata

  • Download URL: httpx_negotiate_sspi-0.26.1a1.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.1a1.tar.gz
Algorithm Hash digest
SHA256 06201af644b599a8e60147f5e12acf3d04bec61cdd754b992e57132ce03c5667
MD5 1ef7609bfdac646963aa5fa8a69a76b1
BLAKE2b-256 36936aee68e12a34748e16b08d66fd93bee5fafae9cfe62a4d2c84210c044735

See more details on using hashes here.

File details

Details for the file httpx_negotiate_sspi-0.26.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for httpx_negotiate_sspi-0.26.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 98547b05c3b71a21ce2cb8f9315582c1b494f273bf0e708d34b6a89c0c35ec20
MD5 e6987e888942236e47cda005422bb7a9
BLAKE2b-256 c9769180f5e4e21969f07f6a5aa8a05c7238576ea65caf558ad55d19ed0ca601

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