Skip to content

Instantly share code, notes, and snippets.

@zmousm
zmousm / fed-edugain-idp-stats.py
Last active December 27, 2015 03:59
Naive attempt at counting IdPs in eduGAIN federations vs. IdPs published by these federations to eduGAIN.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from lxml.objectify import parse
import urllib2
request = urllib2.Request
urlopen = urllib2.urlopen
xpath_ns = {'ds': 'http://www.w3.org/2000/09/xmldsig#',
'md': 'urn:oasis:names:tc:SAML:2.0:metadata',
@zmousm
zmousm / gist:5108930
Last active December 14, 2015 15:38 — forked from aduitsis/gist:5101097
#!/usr/bin/perl -w
use strict;
use warnings;
use Carp;
use MIME::Base64;
use Compress::Zlib;
use URI;
use URI::QueryParam;
use XML::Canonical;