From e3e0cea569da2402a6c6e191b3ec7810741cd55c Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 2 Jun 2014 16:55:38 +0200 Subject: support for reep + ligo sp (SWAMIDOPS-7256) --- scripts/get-metadata.sh | 5 +++++ swamid-sp-2.0.mxml | 1 + 2 files changed, 6 insertions(+) diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh index 957d427b..2fc0b136 100755 --- a/scripts/get-metadata.sh +++ b/scripts/get-metadata.sh @@ -16,12 +16,17 @@ Usage: `basename $0` Ex: `basename $0` https://shibsp.mysite.com/Shibboleth.sso/Metadata `basename $0` https://shibidp.mysite.com/idp/profile/Metadata/SAML `basename $0` some-downloaded-metadata.xml + `basename $0` reep: EOF exit 1 fi if echo "$metadataurl" | grep -qE '^http://|^https://' ; then metadata=`curl -s -k -f $metadataurl` +elif echo "$metadataurl" | grep -qE '^reep:' ; then + id=`echo -n $metadataurl | sed 's/^reep://' | sha1sum | awk '{print $1}'` + metadataurl="http://md.reep.refeds.org/entities/%7Bsha1%7D$id" + metadata=`curl -s -k -f $metadataurl` else metadata=`cat $metadataurl` fi diff --git a/swamid-sp-2.0.mxml b/swamid-sp-2.0.mxml index 9a0751f3..63d9daee 100644 --- a/swamid-sp-2.0.mxml +++ b/swamid-sp-2.0.mxml @@ -300,4 +300,5 @@ + -- cgit v1.2.3