Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandond/requests-negotiate-sspi
Windows SSPI-based Negotiate authentication support for Requests.
https://github.com/brandond/requests-negotiate-sspi
Last synced: 7 days ago
JSON representation
Windows SSPI-based Negotiate authentication support for Requests.
- Host: GitHub
- URL: https://github.com/brandond/requests-negotiate-sspi
- Owner: brandond
- License: apache-2.0
- Created: 2016-08-02T23:23:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T07:58:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T12:46:26.522Z (3 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 131
- Watchers: 11
- Forks: 24
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-rainmana - brandond/requests-negotiate-sspi - Windows SSPI-based Negotiate authentication support for Requests. (Python)
README
requests-negotiate-sspi
=======================[![image](https://badge.fury.io/py/requests-negotiate-sspi.svg)](https://badge.fury.io/py/requests-negotiate-sspi)
[![image](https://travis-ci.com/brandond/requests-negotiate-sspi.svg?branch=master)](https://travis-ci.com/brandond/requests-negotiate-sspi)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 requests
from requests_negotiate_sspi import HttpNegotiateAuthr = requests.get('https://iis.contoso.com', auth=HttpNegotiateAuth())
```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.