{"id":27345,"library":"requests-negotiate-sspi","title":"requests-negotiate-sspi","description":"This package enables Single-Sign On HTTP Negotiate authentication (Kerberos/NTLM) using the requests library on Windows. Current version 0.5.3, low release cadence.","status":"active","version":"0.5.3","language":"python","source_language":"en","source_url":"https://github.com/brandond/requests-negotiate-sspi","tags":["authentication","sspi","windows","requests","http"],"install":[{"cmd":"pip install requests-negotiate-sspi","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for HTTP client functionality.","package":"requests","optional":false},{"reason":"Required for Windows SSPI (Security Support Provider Interface) authentication.","package":"pywin32","optional":false}],"imports":[{"note":"The underscore 'requests_negotiate_sspi' is the correct import module name.","symbol":"HttpNegotiateAuth","correct":"from requests_negotiate_sspi import HttpNegotiateAuth"}],"quickstart":{"code":"import requests\nfrom requests_negotiate_sspi import HttpNegotiateAuth\n\nauth = HttpNegotiateAuth()\nresponse = requests.get('http://example.com', auth=auth)\nprint(response.status_code)\nprint(response.text)","lang":"python","description":"Perform GET request with Negotiate authentication using SSPI on Windows."},"warnings":[{"fix":"Use on Windows only, or wrap imports with platform detection.","message":"This package only works on Windows because it uses Windows SSPI. It will fail with ImportError on Linux/macOS.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using requests-kerberos for non-Windows environments.","message":"The library is unmaintained; check for newer alternatives like requests-kerberos or requests-gssapi for cross-platform support.","severity":"deprecated","affected_versions":"all"},{"fix":"Correct import: 'from requests_negotiate_sspi import HttpNegotiateAuth'.","message":"The imported package name uses underscores, not hyphens. Use 'import requests_negotiate_sspi' not 'requests-negotiate-sspi'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'import requests_negotiate_sspi' (underscores) in your code.","cause":"Import path uses hyphens instead of underscores.","error":"ModuleNotFoundError: No module named 'requests-negotiate-sspi'"},{"fix":"Install pywin32: 'pip install pywin32'","cause":"Missing pywin32 dependency.","error":"ImportError: No module named win32security"},{"fix":"Ensure the URL uses the correct hostname matching the Kerberos SPN (HTTP/hostname@REALM).","cause":"Service Principal Name (SPN) mismatch or server not configured for Negotiate auth.","error":"requests.exceptions.ConnectionError: Failed to authenticate with server"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}