New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

requests-negotiate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requests-negotiate

Negotiate authentication for the requests HTTP client library

  • 1.5
  • PyPI
  • Socket score

Maintainers
1

requests-negotiate

An implementation of HTTP Negotiate authentication (RFC 4559) for requests.

Negotiate authentication is commonly used to provide Kerberos authentication through GSSAPI.

Usage

Here's a trivial example:

import requests
import requests_negotiate

auth = requests_negotiate.HTTPNegotiateAuth()
response = requests.get('https://example.org/', auth=auth)

You'll need a valid Kerberos ticket - acquired using e.g. kinit - for this to work.

Options

You can instantiate an HTTPNegotiateAuth with the following optional parameters:

  • service - A Kerberos principal is generally composed of a service name (e.g. 'HTTP') and a hostname, separated by a slash ('/'). This lets you override the default service of 'HTTP'.
  • service_name - Overrides the full service name (e.g. 'HTTP/example.org')
  • negotiate_client_name - Explicitly specify which client principal to authenticate as. Particularly useful when you're using a credential cache collection.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc