Metadata-Version: 2.4
Name: httpx-negotiate-sspi
Version: 0.28.2
Summary: SSPI authentication for httpx
Author-email: Rob Blackbourn <rob.blackbourn@gmail.com>
License: Apache-2.0
Project-URL: Homepage, https://rob-blackbourn.github.io/httpx-negotiate-sspi
Project-URL: Repository, https://github.com/rob-blackbourn/httpx-negotiate-sspi
Project-URL: Issues, https://github.com/rob-blackbourn/httpx-negotiate-sspi/issues
Description-Content-Type: text/markdown
Requires-Dist: pywin32>=223
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Provides-Extra: httpx
Requires-Dist: httpx<0.29,>0.16; extra == "httpx"
Provides-Extra: httpx2
Requires-Dist: httpx2>=2.0.0; extra == "httpx2"

# httpx-negotiate-sspi

[![image](https://badge.fury.io/py/httpx-negotiate-sspi.svg)](https://badge.fury.io/py/httpx-negotiate-sspi)

This is a port of
[requests-negotiate-sspi](https://github.com/brandond/requests-negotiate-sspi)
for [httpx](https://github.com/encode/httpx)/[httpx2](https://github.com/pydantic/httpx2).

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.

## Installation

To install you must specify either httpx or httpx2. For example:

```bash
pip install httpx-negotiate-sspi[httpx]
```

or

```bash
pip install httpx-negotiate-sspi[httpx2]
```

## Usage

```python
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.
