Skip to content

Instantly share code, notes, and snippets.

View canariecaf's full-sized avatar

Canadian Access Federation canariecaf

View GitHub Profile
@canariecaf
canariecaf / adfs2md.xsl
Last active April 12, 2018 13:33
Scrub ADFS Metadata to simple SAML2 metadata
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706">
<xsl:output method="xml" indent="yes"/>
#!/bin/bash
#
# A tool used to fetch an LDAP directory's SSL certificate and load it into a Java keystore
#
# Author: Chris Phillips chris.phillips@canarie.ca / twitter:@teamktown
# Date: June 2, 2015
#
# This software is free software: you can redistribute it and/or modify
# it under the terms of the Apache 2 Public License.
#
@canariecaf
canariecaf / Notes
Last active May 26, 2017 13:44
Sample WAYF Screenshots with CESNET aggregate example
The above were screen shots after running these commands:
# to run the core vanilla docker image with CESNET aggregate:
docker run -e CDS_AGGREGATE=https://metadata.eduid.cz/entities/eduid -e CDS_REFRESHFREQINMIN=5 -d -p 80:80 --restart=always canariecaf/docker-cds-core
# stop the previous docker, and then to run the customized image with CESNET aggregate:
docker run -e CDS_AGGREGATE=https://metadata.eduid.cz/entities/eduid -e CDS_REFRESHFREQINMIN=5 -d -p 80:80 --restart=always canariecaf/docker-cds-caf
@canariecaf
canariecaf / jetty.service
Created February 10, 2016 18:06
jetty.service file
#
# A basic systemd configuration for Jetty to start on boot
#
# Uses the Service scenario of 'oneshot' run as root
# and once the process has run, it is considered successful
# regardless of error code (even 'FAILURE') as jetty
# may take longer to start than jetty.sh observes it's logs
# for.
#
#