Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pythongssapi/urllib-gssapi

urllib/urllib2 backend for GSSAPI/SPNEGO authentication to HTTP/HTTPS servers
https://github.com/pythongssapi/urllib-gssapi

Last synced: 12 days ago
JSON representation

urllib/urllib2 backend for GSSAPI/SPNEGO authentication to HTTP/HTTPS servers

Awesome Lists containing this project

README

        

# 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

```Python
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!](https://github.com/pythongssapi/urllib_gssapi)).

Will Thames maintained [a fork](https://github.com/willthames/urllib_kerberos)
for a while.

Tim Olsen was the original author of `urllib2_kerberos`
[library](https://bitbucket.org/tolsen/urllib2_kerberos) which is the bulk of
the content of the `urllib_kerberos` module.