diff options
author | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-10-10 15:23:39 +0200 |
---|---|---|
committer | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-10-10 15:23:39 +0200 |
commit | 3f45239b6d4aeb3c6ceb889ca0801d50efafd3d9 (patch) | |
tree | cec005be82d1ae76894518b3cde7a999475d8822 | |
parent | 0192f8f7be1559a91c6d99a478a10f606e8ab5d5 (diff) |
Added test for Contact in Makefile + fixed zoom
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | swamid-2.0/zoom-saas-idp-proxy.sunet.se-sp.xml | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -208,6 +208,10 @@ testEntCat: @echo "Checking for wrong AttributeValue in EntityAttributes/Attribute urn:oasis:names:tc:SAML:attribute:assurance-certification" @for x in `find $(SRCDIRS) -name \*.xml | xargs grep -l "urn:oasis:names:tc:SAML:attribute:assurance-certification"` ; do if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath '/EntityDescriptor/Extensions/EntityAttributes/Attribute[attribute::Name="urn:oasis:names:tc:SAML:attribute:assurance-certification"]' - 2>/dev/null | grep "AttributeValue" | egrep -v ">https://refeds.org/sirtfi<|>http://www.swamid.se/policy/assurance/al1<|>http://www.swamid.se/policy/assurance/al2<|>http://www.swamid.se/policy/authentication/swamid-al2-mfa<|>http://www.swamid.se/policy/authentication/swamid-al2-mfa-hi<" ; then echo " $$x" | sed 's/.*/[1;31m&[0m/' ; fi ; done | grep . && exit 1 || true +testValidContact: + @echo "Checking for valid Contact Information" + @for x in swamid-2.0/*.xml ; do if ( cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/ContactPerson" - 2>/dev/null | grep 'EmailAddress' | grep -qv ">mailto:") ; then echo "[1;31m Missing mailto in ContactPerson in file $$x [0m" ; fi done + testSimpleSign: @echo "Check for new SP:s with SimpleSign (breaks ADFS IdP:s with Shib SP 2.5+)" @for x in `grep -v "#" sp-with-simplesign`; do if [ ! -r swamid-2.0/$$x ] ; then echo $$x saknas; fi ; done | grep . && exit 1 || exit 0 diff --git a/swamid-2.0/zoom-saas-idp-proxy.sunet.se-sp.xml b/swamid-2.0/zoom-saas-idp-proxy.sunet.se-sp.xml index 57df6fb1..a79852b8 100644 --- a/swamid-2.0/zoom-saas-idp-proxy.sunet.se-sp.xml +++ b/swamid-2.0/zoom-saas-idp-proxy.sunet.se-sp.xml @@ -91,10 +91,10 @@ Mxe0+tX0hEXUAHD3qoocrc5Nn5gXeDpmZA4Ik8dtzyPj8AkGUtekHt8= </ns0:Organization> <ns0:ContactPerson contactType="technical"> <ns0:GivenName>Technical</ns0:GivenName> - <ns0:EmailAddress>noc@sunet.se</ns0:EmailAddress> + <ns0:EmailAddress>mailto:noc@sunet.se</ns0:EmailAddress> </ns0:ContactPerson> <ns0:ContactPerson contactType="support"> <ns0:GivenName>Support</ns0:GivenName> - <ns0:EmailAddress>noc@sunet.se</ns0:EmailAddress> + <ns0:EmailAddress>mailto:noc@sunet.se</ns0:EmailAddress> </ns0:ContactPerson> </ns0:EntityDescriptor> |