diff options
author | Leif Johansson <leifj@sunet.se> | 2014-06-02 16:55:38 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-06-02 16:55:38 +0200 |
commit | e3e0cea569da2402a6c6e191b3ec7810741cd55c (patch) | |
tree | a202e1810a2b098c060bc0a8744364d7215c67df | |
parent | 62370a3f4db3b2cc4d7ccb65b1e2f42467c08efc (diff) |
support for reep + ligo sp (SWAMIDOPS-7256)
-rwxr-xr-x | scripts/get-metadata.sh | 5 | ||||
-rw-r--r-- | swamid-sp-2.0.mxml | 1 |
2 files changed, 6 insertions, 0 deletions
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` <metadataurl> 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:<entityid> 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 @@ <xi:include href="swamid-2.0/login.ezproxy.its.uu.se-login.xml"/> <xi:include href="swamid-2.0/its-pd0328.ad.umu.se-shibboleth.xml"/> <xi:include href="swamid-2.0/careergate.student.uu.se-simplesaml-module.php-saml-sp-metadata.php-gl_gateway.xml"/> + <xi:include href="swamid-2.0/gw-astronomy.org-shibboleth-sp.xml"/> </md:EntitiesDescriptor> |