Shibboleth authentication handler
Project description
.. sectionauthor:: Russell Sim <russell@vpac.org>
Introduction
============
This library provides classes to help with using urllib2 to access a shibboleth protected URL.
shib-login
-----------
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 https://slcs1.arcs.org.au/SLCS/login
Username [russell]:
Password:
Successfully authenticated to https://slcs1.arcs.org.au/SLCS/login
$ cat ~/.shibboleth/cookies.txt
# Yummy shibboleth cookies
slcs1.arcs.org.au FALSE / FALSE 1250598932
_shibsession_64656561756c7468747470766a2f2f736c6373312e617263732e6f72672e61752f73686962626f6c657468
_186abd265ea87bf980fae2a16b0243e2
$ curl -b ~/.shibboleth/cookies.txt https://slcs1.arcs.org.au/SLCS/login
<?xml version="1.0" encoding="UTF-8" ?>
<SLCSLoginResponse>
......
$ wget --load-cookies ~/.shibboleth/cookies.txt https://slcs1.arcs.org.au/SLCS/login
--2009-08-18 14:35:53-- https://slcs1.arcs.org.au/SLCS/login
Resolving slcs1.arcs.org.au... 202.158.218.211
Connecting to slcs1.arcs.org.au|202.158.218.211|:443... connected.
HTTP request sent, awaiting response... 200 OK
.......
Changelog
=========
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
Introduction
============
This library provides classes to help with using urllib2 to access a shibboleth protected URL.
shib-login
-----------
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 https://slcs1.arcs.org.au/SLCS/login
Username [russell]:
Password:
Successfully authenticated to https://slcs1.arcs.org.au/SLCS/login
$ cat ~/.shibboleth/cookies.txt
# Yummy shibboleth cookies
slcs1.arcs.org.au FALSE / FALSE 1250598932
_shibsession_64656561756c7468747470766a2f2f736c6373312e617263732e6f72672e61752f73686962626f6c657468
_186abd265ea87bf980fae2a16b0243e2
$ curl -b ~/.shibboleth/cookies.txt https://slcs1.arcs.org.au/SLCS/login
<?xml version="1.0" encoding="UTF-8" ?>
<SLCSLoginResponse>
......
$ wget --load-cookies ~/.shibboleth/cookies.txt https://slcs1.arcs.org.au/SLCS/login
--2009-08-18 14:35:53-- https://slcs1.arcs.org.au/SLCS/login
Resolving slcs1.arcs.org.au... 202.158.218.211
Connecting to slcs1.arcs.org.au|202.158.218.211|:443... connected.
HTTP request sent, awaiting response... 200 OK
.......
Changelog
=========
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file arcs.shibboleth.client-0.2dev-20091210.tar.gz
.
File metadata
- Download URL: arcs.shibboleth.client-0.2dev-20091210.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1afb41c26e32c79b4580d18563f4f2f69506268f27627a4e056d0957d4d2cf3 |
|
MD5 | b384746cdc180df81ffa51d9937d3b03 |
|
BLAKE2b-256 | 93983e0ed0856093aa766f7a78388ce5167071dcd936467291484ec91840f96b |