Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 959 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 959 Bytes

urllib_gssapi

urllib_gssapi is a urllib backend for GSSAPI/SPNEGO authentication to HTTP servers.

Usage

urllib_gssapi replaces urllib_kerberos, and behaves the same way - just rename to HTTPSPNEGOAuthHandler.

With an array of your other handlers (or just an empty one):

Python 3

import urllib.request
import urllib_gssapi

handlers.append(urllib_gssapi.HTTPSPNEGOAuthHandler())

opener = urllib.request.build_opener(*handlers)
urllib.request.install_opener(opener)
request = urllib.request.Request(url, data)

Credits

Robbie Harwood ported to python-gssapi and renamed to urllib_gssapi (this repo!).

Will Thames maintained a fork for a while.

Tim Olsen was the original author of urllib2_kerberos library which is the bulk of the content of the urllib_kerberos module.