Skip to main content

Shibboleth authentication handler

Project description

.. contents::

.. sectionauthor:: Russell Sim <>


This library provides classes to help with using urllib2 to access a shibboleth protected URL.


This commandline tool was designed to dump cookies from the CookieJar after successfully accessing an SP. These cookies can then be used by other tools like ``wget`` of ``curl`` to access the same shibboleth protected URL.


$ shib-login -i VPAC
Username [russell]:
Successfully authenticated to
$ cat ~/.shibboleth/cookies.txt
# Yummy shibboleth cookies FALSE / FALSE 1250598932

$ curl -b ~/.shibboleth/cookies.txt
<?xml version="1.0" encoding="UTF-8" ?>

$ wget --load-cookies ~/.shibboleth/cookies.txt
--2009-08-18 14:35:53--
Connecting to||:443... connected.
HTTP request sent, awaiting response... 200 OK


0.2 - Unrelased
* added https proxy support via httpsproxy_urllib2 [Russell]
* buildout now used for testing [Russell]
* removed dependency on xpath, adds 2.6 compatability [Russell]

0.1 - 2009-10-27
* pushed try count responsibility to credential manager class [Russell]
* chain now stops when cookie is set for initial host [Russell]
* added shib-login and shib-logout cli tools [Russell]
* updated to use adapter like pattern for processing forms [Russell]
* Initial release

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page