Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rob-blackbourn/httpx-negotiate-sspi
Windows SSPI-based Negotiate authentication support for httpx.
https://github.com/rob-blackbourn/httpx-negotiate-sspi
httpx negotiate ntlm sspi
Last synced: about 1 month ago
JSON representation
Windows SSPI-based Negotiate authentication support for httpx.
- Host: GitHub
- URL: https://github.com/rob-blackbourn/httpx-negotiate-sspi
- Owner: rob-blackbourn
- Created: 2023-05-19T07:53:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-23T07:49:13.000Z (9 months ago)
- Last Synced: 2024-03-15T00:56:03.868Z (8 months ago)
- Topics: httpx, negotiate, ntlm, sspi
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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).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
```python
import httpx
from httpx_negotiate_sspi import HttpSspiAuthr = 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: FalseIf 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.